Crystal Reports - Export to PDF

Posted on 2006-11-02
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.
Question by:obrienj
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
  • 7
  • 3
LVL 77

Accepted Solution

peter57r earned 250 total points
ID: 17856965

Author Comment

ID: 17857286
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.....
LVL 77

Expert Comment

ID: 17857329
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.

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button


Author Comment

ID: 17857821
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??

Author Comment

ID: 17858901
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??

LVL 77

Expert Comment

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

Expert Comment

ID: 17881294
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.


Author Comment

ID: 17883946
okay cheers, ill try it tomorrow.

Author Comment

ID: 17897402
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.

Author Comment

ID: 17898483
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.

Author Comment

ID: 18091587
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.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

729 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