SAP Knowledge Base Article - Public

1334650 - Text truncated on the right, when exporting a report to PDF format from Crystal Reports

Symptom

  • Text truncated.
  • Characters clipped at the end of some lines.
  • When exporting a report to PDF format, some of the text is truncated on the right.

Environment

  • SAP Crystal Reports 2011
  • SAP Crystal Reports 2013
  • SAP Crystal Reports 2016
        
  • SAP Crystal Reports for Enterprise 4.0
  • SAP Crystal Reports for Enterprise 4.1
  • SAP Crystal Reports for Enterprise 4.2

Reproducing the Issue

  1. In Crystal Reports, create a report off any data source.
  2. Insert database fields or text objects that contains multiple lines.
  3. Export the report to PDF format.
       
    When opening the PDF document, notice the characters on the right side are truncated.
      
     PDF_Export_01.png

Cause

  • Text displaying too close to the right edge of a Text Object or Database Fields have the potential to be truncated because the space rendering between characters is slightly be different due to various factors and the last characters may end up right after the limit of the width of the object size.

Resolution

  • To ensure the end of the text is not truncated, add a small gap between the end of the text object, and the text.
       
    1. Open the report in Crystal Reports designer.
         
    2. If it is not already a Text Object, add a Text Objects and insert the Database Field in the Text Object.
        
    3. Double Click on the Text Object and notice the ruler displays the width of the Text Object.
         
       PDF_Export_02.png
    4. In the ruler that appear above, move the right indent marker Hanging Indent Marker.bmp to the left, so the text does not come close to the border of the text field.
        
       PDF_Export_03.png
          
    5. Save the report.

See Also

 

Keywords

Export to PDF , KBA , BI-RA-CR , Crystal Reports designer or BusinessViews Manager , Problem

Product

Crystal Reports 2008 V1 ; SAP Crystal Reports 2011 ; SAP Crystal Reports 2013 ; SAP Crystal Reports 2016