19. December 2011 21:34
With this article, I am starting a small series of tips and tricks to handle few irritating issues of Crystal Reports. This post covers a couple of issues:
Issue 1: Crystal Report Viewer's Print and Export button not working.
Solution: This is a bug which is addressed by Crystal Reports Service Packs. If you are using Crystal Reports from within Visual Studio, you need to download Crystal Reports for Visual Studio service pack. There are a couple of Hot Fixes and Security Updates released to patch further issues:
- Visual Studio 2005 Service Pack 1 Crystal Reports Security Update
- Crystal Reports Hot Fix for Visual Studio 2005
Issue 2: Font size gets automatically reduced when printing or exporting the report to PDF.
Solution: The update to this issue (Track ID ADAPT00145285) comes with a PDF document which states that this scaling was intentionally done. This issue really troubles because you are not aware of the actual font size till you take the print. Before fixing this issue, I had to double the font-size in my report to get a normal font size in the printed report.
Business Objects addressed this issue with an update which is available via FTP. In case the update fails to work on your PC, you can manually edit few registry settings to make it work. There are a couple of nice articles where you will find detailed information on this issue along with the download links:
If you are using Windows Server 2008 R2 and Visual Studio (specially, 2005) is installed in this environment, the above mentioned registry changes may not work. To solve this issue on my Windows Server 2008, I added the same lines in:
HKEY_USERS \ S-1-5-18\Software\Crystal Decisions
HKEY_USERS \S-1-5-19\Software\Crystal Decisions
HKEY_USERS \ S-1-5-20\Software\Crystal Decisions
HKEY_USERS\S-1-5-21-3207303397-134742154-2652669602-1002\Software\Business Objects (and Crystal Decisions)