SAP Knowledge Base Article - Public

3259126 - Duplicate images displayed in Crystal Reports when exporting to PDF

Symptom

  • When exporting to PDF, one image is replaced with a duplicate of another image.
  • The image objects have different names but the first 8 characters are the same.
  • In Crystal Reports, when viewing the report the images show up correctly.
  • The .png pictures were added to the report by selecting "Picture" under the meny "Insert"

Environment

  • SAP Crystal Reports 2016
  • SAP Crystal Reports 2020

Reproducing the Issue

  1. In Crystal Reports, create a report
  2. Insert 2 different images (.png) by selecting "Picture", under the menu "Insert"
  3. Right click on one image and click "Format Graphic…". Under Object Name, give a name to the picture longer than 8 characters. For example "a2345678a".
  4. Repeat previous step for the second image, keeping the first 8 characters the same, but changing the rest of the name. For example, "a2345678b".
  5. Export the report to PDF format.
  6. When you open the generated PDF document, the 2 images on the report will be the same.

Cause

  • If the first 8 characters of the image name are the same, one of the images will be used in place of the other image.
  • This occurs because the PDF export process only considering the first 8 characters of the object names in certain situations.

Resolution

  • Ensure the first 8 characters of the image object names are different.
  • Ensure the last character of the image object name is not a number.

Keywords

cr, crystal report, picture, double, , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , Problem

Product

SAP Crystal Reports 2016 ; SAP Crystal Reports 2020