SAP Knowledge Base Article - Public

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

Symptom

  • Text truncated.
  • Characters clipped at the end of some lines.
  • When exporting a report to PDF format from Crystal Reports, some of the text is truncated on the right.
       
         
  • Note: Images and data in this SAP Knowledge Base Article is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

  • SAP Crystal Reports 2016
  • SAP Crystal Reports 2020
          
  • SAP Crystal Reports for Enterprise 4.2
  • SAP Crystal Reports for Enterprise 4.3

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

1835763 - Text truncates when exporting a report to PDF format from Crystal Reports

Keywords

Export to PDF, CR, CRE , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , Problem

Product

SAP Crystal Reports 2016 ; SAP Crystal Reports 2020