Link to home
Start Free TrialLog in
Avatar of steve-onpoint
steve-onpoint

asked on

Re: Crystal Reports Export to PDF (in a .NET Web Application) - text truncated on right margin ?

Hello,

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?  

Thanks.
- Steve
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mike McCracken
Mike McCracken

Glad I could help

mlmcc
Solution to your problem,

The ADOBE PDF need a copy of the ADOBE PPD files loaded on each of the environment servers that will run the report. That is to say that the PDF reader gets it's formatting from the PPD driver supplied freely from ADOBE.

Once you use the tool that ADOBE also supplies your problems with the formating, text and font issues will be solved because what the PPD files and exe program do is to install a "GENERIC POSTSCRIPT" print driver which "DOSES NOT" I repeat "DOES NOT" have to be installed on a client's machine.

Try it, just go to the ADOBE website and look up PPD files and download the Generic Postsript one and the tools used to install the driver. Once you do this then install the driver on you Dev server then on your QA server and finally on your Prod server. You will see that the result will be 98 to 100% of your PDF problems resolved.

Sincerely,

JColbert AKA Dr. Wolf :-)