cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Report X1 Data Truncation

Former Member
0 Kudos

Hi,

I am using Crystal X1 and .Net. The report is designed in Letter format. Web Application allows user to select the page format (A4 / Letter) for export to PDF. When the user selects A4 and exports to PDF, data on the right is getting truncated. But if the user first exports to Word and then clicks PDF export the report generates fine without truncation. This isssue does not occur with letter format.

We do not have printers set up on Production Web servers (that is not an option.)

Can someone help to resolve this problem?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

When Crystal renders the report and generates each page we use the display driver and the default printer. If no printer is defined we default to 8 1/2" by 11" Portrait using the Windows Generic Print driver.

Options are to change the report to no printer, sometimes this works or install a printer that is typically used by your users so CR can use the correct print driver to generate the report.

No other options

Former Member
0 Kudos

Thanks for the response. The report already is set to NO Printer. We do not have a choise of installing printer drivers on Prod servers. Is there anything else i could try?

Thanks.

0 Kudos

Nope, it's a basic requirement for Crystal to render the page, always has been. Other option would be not to allow the users to select A4 and let them format it to A4 once in PDF format. Other option would be to use Windows Office API's to export the DOC to PDF format in the back ground so the user doesn't see the RTF to PDF change.

Are you setting a printer in code at all? Possibly using the generic printer as the default driver and setting it to this in code may work. Assuming the MS driver has an option to use A4 paper size it may work, the generic printer is installed on all OS's. I don't think it does but may work.

Last option is to install the printer but just don't share it so it's not available to any user other then the system account which your app and the WEB server would need access to.

Before deploying to the production server did you test your app on a test machine that images your production configuration?

Last option is CR 2008 is no longer dependant on a print drivers, you can download a trial version and give that a test on a test machine.

Former Member
0 Kudos

Then why does it work properly when the user first elects to export to word on the web app and then elects to export to PDF on the web app?

0 Kudos

Word is likely loading a print driver that CR then has access to. Use Process Monitor to see which driver is being loaded and then set that printer as the default. It maybe the Microsoft Document Writer which is also installed by default on most OS's. Because you set No Printer CR defaults to the Generic Print driver unless if find a default printer which the OS is using. There are basic functionality differences in our export dll's.

Answers (0)