We help IT Professionals succeed at work.

Crystal Reports - Export to PDF

obrienj asked
Medium Priority
Last Modified: 2007-12-19
I am having trouble with the Crystal Reports export to pdf functionality.  Basically, when I export a CR document it comes out differently on the PDF.  i.e. some lines get slightly moved, it seems to get zoomed down very slightly etc etc.... there's a few different issues.  Is there some settings I'm not using?? Should it be possible to represent the Crystal Report exactly as is??

I'm using crpre32.dll for the crystal calls, and using u2fpdf.dll for the pdf export.

If I can't figure this out, is there other mechanisms for exporting to pdf.

I know I can prob use a PDF writer to do it, but really not sure if thats the road I want to take.
Watch Question


Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


that explains the font changes... but what about the movement of lines etc... i.e. the layout gets a bit messed up.  Are they related issues??

Also, on that page it seems to say that the issue can be fixed... does it actually work satisfactorily??  looks like a relatively dangerous fix, not sure I want to risk it unless it works.

I assume you have misgivings as you say bad news, rather than good news.....

I only meant bad news in terms of it being a bit of pain to deal with.
I have not used the fix myself, but other reports here suggest that it will resolve the fonts issue.  
I am guessing that the problems are related but I don't know for sur.



okay thanks.... at least its fixable.. thats always some good news.

Anyone else know if the the font fix will fix the layout fix??? or if they are completely different problems, is there a fix for the layout one??


okay, another problem.  I can't implement  the fix as I seem to be missing the reg path.
I am supposed to change the value of 'ForceLargerFonts' to 1 within the following reg folder:
HKEY_CURRENT_USER\SOFTWARE\Crystal Decisions\10.0\Crystal Reports\Export\PDF

But the PDF folder does not exist.  It stops at the Export folder, and there is no ForceLargerFonts entry there.

Anyone know why I would be missing this info??


I only have CR9 where I am at present, so can't investigate this.
I'll see if anyone else can help.

Hey James - the registry key does not exist at all before the update (Peter's first response link) is installed.  Once the update is installed you should have this key and be able to change the value.  You could add the value manually to the registry and shouldn't have any negative impact but without the update I don't believe it would help either.

I don't know for certain that the layout problem will be fixed with the font but it seems a reasonable possibility that the positioning of the lines are based on the position of the text which changes with the font size.  Can't say for certain though.



okay cheers, ill try it tomorrow.


I installed the update, and changed the value to 1.  It definitely fixed the fonts problem all right, but here's the bad news.  It did not fix the layout problem.


so anyone any ideas about the layout.  It seems to push the margins in from each side.... left, right, top, bottom.  Some of the inner lines and boxes are okay, others are not.   The differences are minuscule, and if it wasn't for one or two lines you wouldn't even notice.  

Is there any other "export" options or anything that i can set??  it might be something small in the setup.


ill accept the first answer since know one seems to know anything about the layout.  It's likely to just be a Crystal Reports problem.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.