Solved

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

Posted on 2004-09-13
5
1,757 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 100

Accepted Solution

by:
mlmcc earned 250 total points
Comment Utility
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 100

Expert Comment

by:mlmcc
Comment Utility
0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
Glad I could help

mlmcc
0
 

Expert Comment

by:JColbert
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now