SAP Knowledge Base Article - Public

3014691 - Crystal Reports for Visual Studio: Graphic Fits in Crystal Reports Designer, but is Oversized when Exported to PDF

Symptom

  •  When an image is placed in a report via Crystal Designer and resized to fit the page
  •  Image looks correct in preview,
  •  When the report is exported to PDF  by a Crystal Reports for Visual Studio application it looks oversized.

Environment

Crystal Reports for Visual Studio V29

Reproducing the Issue

  1. Create a document in Crystal Reports
  2. Use a .png graphic whose original size is larger than the Crystal Reports page.  Resize it in CR to fit within the page.
  3. Save the report.
  4. In Crystal Reports for Visual Studio application, publish the report and export it to PDF format.
  5. The graphic appears normal in the published report, but oversized in the exported version.

Cause

Updates to dependent libraries in V29 of Crystal Reports for Visual Studio

Resolution

  1. Resize graphic using a photo editor such as Paint so it fits within page size, and convert it to a BMP image format.
  2. Open the report in Crystal Reports Designer.  Go to File -> Page Setup.
  3. Uncheck the "no printer" box and select a printer.  
  4.  Check the "Dissociate formatting page size and printing paper size" box.
  5. Graphic should now appear normally after exporting.


Keywords

crystal reports, graphic, image, png, bmp, V29, oversized image, export to pdf, Crystal Reports for Visual Studio , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem

Product

SAP Crystal Reports, version for Visual Studio all versions