Tim Mackey's Weblog
.Net Windows Forms
Friday, 11 August 2006
Crystal Reports: Export PDF irregularities between server and dev machine
I have a few reports in my web application that i export in PDF format only. You would think this would remove any printer driver complications but apparently not.
Crystal Reports have a
surprisingly good article
to help troubleshoot issues with printing or exporting a report.
The problem i was finding was that in a Text object or Unbound field, the text would be truncated at the edge of the box boundary. Some users have reported strange mid-word wrapping, but mine was a different problem, actually hacking off the end of each line. This didn't happen on my dev machine, but it did happen on the server (2003). When i compared them side by side, the Times New Roman font on the server was stretched by about 5% compared to my dev machine.
with the help of the CR article, i tracked it down to the lack of any printer installed on the server, i had also disabled the Print Spooler service which was preventing even the Microsoft Office Document Imaging Printer from being available. So i started the print spooler service and made sure that the Office Imaging Printer was marked as the default printer. Then i went back to Visual Studio and set all the reports to use the Office Imaging printer. This solved the problem.
You could of course install a PDF only printer such as PrimoPDF if you didn't have MS office installed on the server. As long as the server has the same printer installed as the one set in the report design, everything turns out fine.
Friday, 11 August 2006 13:20:57 (GMT Daylight Time, UTC+01:00)
.Net Windows Forms
Tuesday, 22 August 2006 23:26:57 (GMT Daylight Time, UTC+01:00)
Tim, you are my hero!
I have been struggling with this issue for months and following up with Business Objects support. This was exactly the problem and in less than a minute, I've got my reports rendering properly again.
Ryan @ Ross
Please login with either your
above, or your details below.
Comment (Some html is allowed:
) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.
Enter the code shown (prevents robots):
Live Comment Preview
© Copyright 2017 Tim Mackey