Solved

Export To PDF Issue

Posted on 2010-08-12
7
634 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 100

Expert Comment

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

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Update 21-May-2015: I temporarily removed the source code and the code snippets to make major changes to the program. Regards, Joe INTRODUCTION This Article is a follow-up to the Article entitled How To Rename-Move a Batch of PDF Files Based o…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this video, we show how to perform Bates Numbering/Stamping of PDF documents using Power PDF Advanced, the newest product from the Document Imaging division of Nuance Communications. There are two editions of Power PDF — Standard and Advanced. Th…
Sometimes we receive PDF files that are in the wrong orientation. They may be sideways or even upside down. This most commonly happens with scanned or faxed documents. It is possible to rotate the view of these PDFs with the free Adobe Reader produc…

763 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

12 Experts available now in Live!

Get 1:1 Help Now