• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 244
  • Last Modified:

Columns get shifted in Excel file exported from a ASP Page using Crystal Report 9

In my ASP application there is a provision for PDF and Excel File Export. This is done with the help of Crystal Report 9. I am Using the same Crystal report file for both PDF export and Excel Export. In PDF export it works fine. But in Excel export the format of columns  get   changed and data comes in improper colums, and it is not same as PDF File. What may be the Problem??.  
0
winsoftech
Asked:
winsoftech
3 Solutions
 
peter57rCommented:
Hi winsoftech,
I guess it's the same problem that everybody else has with exporting to XL from CR.(:-)

I don't know anything about ASP and CR but in the CR UI there is an option 'Excel (Extended) ' in the export formats; this usually produces a slightly better result than the plain Excel option, and there might be (don't have V9 here at the moment)  a 'Data Only' option, which is OK  for creating a straight rows and columns  output but has no formatting.
Pete
0
 
wykabryanCommented:
There is a way to format a CR to export perfectly to excel.  Here are a list of things I do.

1.  Make sure that all columns are the same width.
2. Make sure that there is no more than the very minimum space between the cells.  Typically what I see in development is that the columns are just place on the report and expanded to the full lenght of the column.  You do not need to do this if it is going into excel and you are worried about space.  
3.  If you require a space between two column than apply the following. For CR 9 or low: add a text box>type in the word "space"> then right click>go to the general tab>click on suppress. For CRXI: Insert a blank text box.  
4. Make sure that everything is left justified.  You may need to modify a column to right but if the above is set up correctly you should not have to worry about this.

Again the key to excel is everything must match up.  I have found that organizing the report like things helps the application understand where to put the data.

Hope this helps.
0
 
mlmccCommented:
To expand on the previous comments, here is a document from Crystal with help on how to format a report for exporting to Excel.

http://support.businessobjects.com/communityCS/TechnicalPapers/cr10_export_excel.pdf.asp

mlmcc
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now