- Carriage returns are displayed as small boxes (unrecognized unicode characters) in a PDF generated by a Crystal Report Export
- Within the Crystal Reports for Eclipse report development environment the carriage returns display correctly (they are not seen)
- The export to PDF was done programatically using Crystal Reports for Eclipse (Crystal Reports for Java).
- When the application and export were done on a machine running Windows 7 the export and resultant PDF displayed correctly but running the same application and export on another machine running Windows 2003 the export displayed the carriage return incorrectly.
- Crystal Reports for Eclipse Version 2.0
- JDK 1.5
- Windows 2003
Reproducing the Issue
- Within Crystal Reports for Eclipse create a report that displays a Rich Text Format (RTF) field that contains carriage/line returns.
- Programatically export the report to PDF format using the Crystal Reports for Java runtime.
- View the resultant PDF document and notice that within the exported file the carriage returns of the RTF field display as small boxes when they should not be visible.
- The cause of the issue is machine specific.
- On the Windows 2003 machine not all of the required fonts and characters sets were available to the application during the exporting process.
- Expose the required fonts to the application at the Operating System level.
- Under the “Regional and Language Options” for the Operating System, go to the Languages tab and check the “Install files for complex script and right-to-left languages (including Thai)” checkbox.
- Also within the "Regional and Language Options" under the Advanced tab, check the “Apply all settings to the current user account and to the default user profile”.
pdf, export, carriage return, box, cr4e , KBA , BI-DEV-JAV , BI Software Development Kits (SDKs) - Java , Problem
Crystal Reports, version for Eclipse 2.0