Re: Crystal Reports Export to PDF (in a .NET Web Application) - text truncated on right margin ?
Posted on 2004-09-13
I have a web application written in .NET using Crystal Reports for .NET. I have created several crystal reports. The requested Crystal Report is exported to PDF (on the fly) and then the user has the ability to click on a view link to "view" the report in their browser. When I execute these series of user steps on local host, the report is exported to PDF and views just fine. When I move the application to our QA Environment, some of the text on the right side of the report (right margin) is cut off or truncated. I did some searching on Business Objects support site and other various internet sites and concluded that Crystal Reports uses the server's default printer (print driver) to export the report to PDF. If no default printer is selected, then Crystal Reports uses a generic print driver. Ok, so now when I install a virtual printer on the web server and select it as default printer, some of the text in the report is still cut-off. The report looks a little better, but it does still not look 100% like the version exported to PDF from my Local Host. I have set up the same printer (print driver) as on my Local Host but still when executed on the web server, some text is still cut-off. After adding the virtual printer (print driver) on the web server, I restarted IIS, restarted the machine, etc and still no luck. The text in question is actually a crystal "Text Object" with about an entire page of text in it. When executed on my Local Host, the report is flawless and looks great. Any ideas?