Skip to Content
0
Former Member
Oct 10, 2012 at 10:07 PM

Format issues when exporting to MS Word with VS 2005

31 Views

We have a report written in Crystal 8.5 for a classic ASP application. In the application the report is exported to Microsoft Word before being displayed. We have since written the application in Visual Studio 2005 and migrated this report as well to Crystal 10.2 that comes with VS 2005. The migration seemed ok and all the settings seemed to have migrated correctly. In the new application we use the export command to export the report to MS Word again as below:

crystalReport.ExportToDisk(ExportFormatType.WordForWindows, ExportPath);

When we bring the report up from within the application, the formatting is very different from what it used to be. In both cases we use MS Word 2003. Here are some of the problems we noticed:

  1. The font sizes of some of the text are 6.5 in the report but in the old application they come up as 7 and in the new as 6.
  2. When we try the print the report from word in the new application, the printer says there is no paper to fit the report. When we say to continue anyway, it prints on 2 pages instead of 1 that it used to do under the old application.
  3. There is a logo on top of the page that prints almost at the same spot as it used to but the rest of the text is shifted down and the signature moves to the next page and that’s how we end up with 2 pages instead of 1.
  4. The margins for text boxes are not the same as the old copy.
  5. Of the 4 lines on the signature, two disappear in the new report.

I have seen the following notes from SAP regarding these issues but this was all fine in 8.5 and used to work and it is in the new version that it is behaving differently so I don’t believe this is by design and it seems like a bug. We also tried RTF and had the same issues.

http://search.sap.com/notes?id=0001245243&boj=/sap/bc/bsp/spn/scn_bosap/notes.do?access=69765F6D6F64653D3939382669765F7361706E6F7465735F6E756D6265723D30303031323435323433

http://search.sap.com/notes?id=0001310166&boj=/sap/bc/bsp/spn/scn_bosap/notes.do?access=69765F6D6F64653D3939382669765F7361706E6F7465735F6E756D6265723D30303031333130313636