Solved

Export To PDF Issue

Posted on 2010-08-12
7
636 Views
Last Modified: 2012-05-10
I have an old server (Windows Server 2003 x86) that I used to export lots reports as PDFs and it has worked perfectly. The new server is now setup (running Windows Server 2008 R2 x64), and the export seems to have gone haywire. I am using Crystal Reports 2008 and an .NET 4.0 application using the CrystalDecisions version 12 libraries.

The report is 1 page long, 8.5 x 11, but when exported to a pdf it is spreading across 3 pages with lots of white space including an entire blank page at the end. This only happens when running it on the server through either a web application, or windows application. I am able to actually preview the report in Crystal, view and export and it looks good.

Any ideas what would be changing the report into a 3 page pdf? I have installed the correct merge modules, Crystal Reports 2008 and it hasn't help.

Thanks,
Eric
0
Comment
Question by:tgidirect
  • 3
  • 2
7 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 33423713
Ensure you are using the same printer and printer driver on all machines.

Crystal uses the printer driver to render the report and changing drivers even sometimes the version can cause issues lie that.

I suspect you have a field that is near the right margin and changing the driver could push the field over the default right margin

mlmcc
0
 
LVL 7

Expert Comment

by:bouscal
ID: 33426643
If you are using any functions for grouping and the regional settings on the server are different that on the system that the reports were developed on it can create issues.  For us, it eliminated a grouping based on a date field, I could see it affecting what is being hidden which could essentially give you 3 pages of empty records.
0
 

Author Comment

by:tgidirect
ID: 33429327
There is actually no data source attached it to.  It is more of a static report that has values from the application passed in as parameters.

I did verify that the print driver is the same on both machines.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 100

Expert Comment

by:mlmcc
ID: 33430092
I assume the driver changed and you are using the 64-bit version rather than using the 32-bit version from an old OS?
That change might be enough to cause the issue.

mlmcc
0
 

Author Comment

by:tgidirect
ID: 33430272
I will look into it again.  

Also, when I preview the report manually in Crystal and put in some random parameters it actually creates the report correctly with 1 page.  When the application creates it, it is 3 pages.  But it only happens on 64bit, not 32bit...
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 33434628
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
What's the most efficient way to load up a couple of large table in C#? 5 39
What is Thread.Sleep? 5 46
C# Offline Apllication 5 56
Server Error 11 48
Have you ever come up with a need of emailing only few pages of PDF file to one of yourfriend or colleague, instead of whole Adobe file? If yes, then surely you have face problems in doing that! Read this section as I have suggested multiple solutio…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this first video of the three-part Xpdf series, we introduce and describe Xpdf, a library containing nine command line utilities that perform various functions on PDF files. We show where the library is located and how to download it, discuss its…
In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

863 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

24 Experts available now in Live!

Get 1:1 Help Now