Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

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

Expert Comment

by:mlmcc
ID: 12050859
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 12053754
0
 
LVL 100

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

856 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