Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issues exporting an Excel file from Crystal Reports

I am having an issue exporting Crystal Reports into an excel file.
I tried both options of exporting the Excel data AND exporting as an excel file. When i export my Crystal Report as an excel file, i cannot sort any of the fields in my excel file. When i export the report as just the excel data, when i open in Excel, the headers are really messed up. The first three headers appear at the END of all of the columns--which doesn't make any sense to me.

Does anybody know how to change export options in Visual Studio? I am using Crystal Reports on Visual Studio and have no idea how to change any of these options.

like image 241
yeahumok Avatar asked Feb 03 '10 18:02

yeahumok


People also ask

How do I export Crystal Reports to Excel in proper format?

When viewing the Crystal Report in Acctivate, you can select the Export button on the toolbar of the Report window. Click the Format: drop down list and select the Microsoft Excel 97-2000 - Data only (XLS) format. Destination Dropdown should remain set to Disk File. Click OK.

How do I export Crystal Reports to Excel with lines and boxes?

Line and boxes are not exported to Excel. So you will need to Right Click the TextBox -> Format Object. In Border tab set the Line Style. Then Report design look like below.

How do I export a Crystal Report to Excel from multiple sheets?

There are 2 ways to generate a single Excel file with multiple tabs: Run multiple reports, export and merge them in one Excel file. Each report will be placed into a separate worksheet. Run a single report, export it and add it to an existing Excel file as a new worksheet.


1 Answers

It sounds like your report has not been laid out in an optimal way for Excel export, and it's not Visual Studio or the export options that is the problem here. Depending on your version of Crystal, some tips would be :

1) Make sure all column headers are the same width and left-most position as the data they relate to.
2) Minimize gaps between column headers, and also gaps between detail rows.

Unless you're using earlier than CR8.5, it's likely you can't sort because the export has created lots of merged cells - points 1 and 2 will mitigate this substantially. Basically, if you're exporting to Excel you want your report's data to be laid out as similar to an Excel spreadsheet as possible.

like image 141
MartW Avatar answered Nov 14 '22 05:11

MartW