SAP Knowledge Base Article - Public

1534395 - When exporting a Crystal Report to PDF format, carriage return characters are showing as small boxes (an unrecognized unicode character).

Symptom

  • 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.

Environment

  • Crystal Reports for Eclipse Version 2.0
  • JDK 1.5
  • Windows 2003

Reproducing the Issue

  1. Within Crystal Reports for Eclipse create a report that displays a Rich Text Format (RTF) field that contains carriage/line returns.
  2. Programatically export the report to PDF format using the Crystal Reports for Java runtime.
  3. 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.

Cause

  • 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.

Resolution

  • 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”. 

Keywords

pdf, export, carriage return, box, cr4e , KBA , BI-DEV-JAV , BI Software Development Kits (SDKs) - Java , Problem

Product

Crystal Reports, version for Eclipse 2.0