Crystal Report Font Size Problem
Normally font size is smaller when we print Crystal Report or export to PDF using any browser without IE. If font size is not what you have designed in Crystal Report, you have to change in registry.
To fix the bug, just follow the steps below by adding 2 registry keys. This solution is applicable for "Crystal Report For Visual Studio 2010,2012,2013"
1. Select Start > Run. Type regedit and click OK.
2. Expand HKEY_CURRENT_USER\Software\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports.
3. Right-click the 'Crystal Reports' folder and select New > Key. This will create a new folder. Name the new folder 'Export' with no quotes.
2. Expand HKEY_CURRENT_USER\Software\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports.
3. Right-click the 'Crystal Reports' folder and select New > Key. This will create a new folder. Name the new folder 'Export' with no quotes.
4. Right-click the 'Export' folder and select New > Key. This creates a new folder. Name the new folder 'Pdf' with no quotes.
5. Right-click the 'Pdf' folder and select New > DWORD Value.
6. Name this 'ForceLargerFonts' with no quotes and note that it is case sensitive.
7. Double-click ForceLargerFonts and change the Value data to 1 and click OK.
8. Close all the registry folders and expand the following registry For Crystal Reports 13, HKEY_LOCAL_MACHINE\Software\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports.
9. Repeat the steps 3 to 7.
5. Right-click the 'Pdf' folder and select New > DWORD Value.
6. Name this 'ForceLargerFonts' with no quotes and note that it is case sensitive.
7. Double-click ForceLargerFonts and change the Value data to 1 and click OK.
8. Close all the registry folders and expand the following registry For Crystal Reports 13, HKEY_LOCAL_MACHINE\Software\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports.
9. Repeat the steps 3 to 7.
*** After adding these two registry keys, Crystal Reports won't have this font size problem any more.
*** If you want to run Crystal Reports from IIS server, you need to modify permissions of these registry keys. IIS security model prevents the application pool identity to read those registry entries by default.
Open Windows application regedit and browse to HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\Export\Pdf
Right click the key and choose “Permissions” from context menu.
Add in default IIS user account. Usually it's IUSR_MachineName.
Hope it will help!
.
Comments
Post a Comment