Symptom
- When an image is placed in a report in Crystal Reports, the image fit the page, and look fine when previewing the report.
- When the report is exported to PDF from Crystal Reports for Visual Studio application, the image looks oversized in the generated PDF document.
Environment
SAP Crystal Reports for Visual Studio
Reproducing the Issue
- In Crystal Reports, create a report based on any data source.
- Use a .png graphic whose original size is larger than the page size.
- Resize the image to fit the page on the report.
- Save the report.
- In Crystal Reports for Visual Studio application, publish the report and export it to PDF format.
- The graphic appears normal in the published report, but oversized in the exported version.
Resolution
- To ensure the image size stays the same:
-
- Resize graphic the image in a photo editor such as Paint so it fits within page size, and convert it to a BMP image format.
- Open the report in Crystal Reports.
- Go to File -> Page Setup.
- Uncheck the "no printer" box and select a printer.
- Check the "Dissociate formatting page size and printing paper size" box.
- 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, developer version for Microsoft Visual Studio
SAP Knowledge Base Article - Public