Link to home
Start Free TrialLog in
Avatar of obrienj
obrienj

asked on

Crystal Reports - Export to PDF

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.
cheers,
james
ASKER CERTIFIED SOLUTION
Avatar of peter57r
peter57r
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of obrienj
obrienj

ASKER

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.

Pete
Avatar of obrienj

ASKER

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??
Avatar of obrienj

ASKER

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.

frodoman
Avatar of obrienj

ASKER

okay cheers, ill try it tomorrow.
Avatar of obrienj

ASKER

Hello,
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.
Avatar of obrienj

ASKER

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.
Avatar of obrienj

ASKER

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.
thanks