Wednesday, April 6, 2016

Font Size Decreased when Exporting to PDF with Crystal Reports

Fixing decreased font size when exporting PDF.
When you use Crystal Report for .NET Framework to export to PDF file, the font size is decreased. To solve the problem, you have to edit some registry in every computer that want to export PDF.

1On keyboard, press "Windows" + "R" to open Run window
2Type "regedit" (without quotation marks) and hit Enter
3Go to these keys
  • HKEY_CURRENT_USER\Software\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\Export\PDF
  • HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\Export\PDF

    Note: For Crystal Report for .NET Framework 64 bit, use this key instead
    HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\Export\PDF
4Each key of step 3, edit value of key "ForceLargerFonts" to 1. (if key does not exist, you have to create key with type DWORD)

Note: for the other version of Crystal Report will have different registry paths. More details in here, and here.



Happy Coding!

No comments:

Post a Comment