Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export Report to PDF and RTF format.

Status
Not open for further replies.

bkno

Technical User
Feb 23, 2004
10
US
I’m having trouble with converting Crystal Reports to PDF’s and RTF’s, using this code:
//save report as pdf in location where it can be viewed in browser repDoc.ExportToDisk(ExportFormatType.PortableDocFormat, strPDFLocation);
//save report as rtf for printing
repDoc.ExportToDisk(ExportFormatType.RichText, strRTFLocation);

The code works fine, but the font sizes get changed. Example, if I use Arial 8 in Crystal, it will be Arial 7.5 in the RTF document and appears to be even smaller in the PDF. I tried increasing the font to 8.5 in Crystal so I could get an 8 in RTF, but I can’t get everything to fit on 3 pages then. This is for compliance documents which have to meet a PUC requirement regarding font size, and the group of documents can’t be more than 8 pieces of paper or we’ll have to go to a larger envelope which costs more to mail.

I’ve searched Google for answers and most of them say this problem is caused by different print drivers on different servers, but I’m doing everything on my PC so the drivers are the same for everything.

Hopefully someone has an idea that might help.
 
Not heard of this with RTF, but its a known issue with PDF.

Click Start > Run.
Type “regedit” in the Open field of the Run dialog box. Click OK. The Registry Editor appears.
Navigate to [HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\Crystal Reports\Export\Pdf].
Add the following registry key: "ForceLargerFonts"=dword:00000001.
Restart the Crystal Reports Cache Server, Crystal Reports Page Server, and Crystal Reports Job Server.
This causes the registry key to take effect.

THis is from BO knowledge base


Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top