?
Solved

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

Posted on 2004-09-13
5
Medium Priority
?
1,924 Views
Last Modified: 2011-04-14
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
0
Comment
Question by:steve-onpoint
  • 4
5 Comments
 
LVL 101

Accepted Solution

by:
mlmcc earned 750 total points
ID: 12050847
You are correct this is probably related to the printer driver.

After you installed the printer driver on the QA host and made it deafault, did you bring a new copy of the report from your machine?  If not try that.

You may also need to ensure the client is using the printer driver.

mlmcc
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 12050859
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 12053754
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 12060411
Glad I could help

mlmcc
0
 

Expert Comment

by:JColbert
ID: 13745325
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 :-)
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
The video will let you know the exact process to import OST/PST files to the cloud based Office 365 mailboxes. Using Kernel Import PST to Office 365 tool, one can quickly import numerous OST/PST files to Office 365. Besides this, the tool also comes…
Watch the video to know the process of migration of Exchange or Office 365 mailboxes in absence of MS Outlook. It is an eminent tool which can easily migrate Public, Archive user mailboxes from one another Exchange server and Office 365. Kernel Migr…

590 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question