Home Devices
New Blog Posts: Merging Reports - Part 1 and Part 2

Image qualty on PDF Export

Hello,

I've notice that if a report ,with a PNG Image logo, is exported to PDF using the preview tab on the report designer, it produces a higher quality image than if the export is done through code. Any idea why?

Here's the code used to export which coincide with the defaults on the export dialog when do through the preview tab.

Report.PDFSettings.OpenPDFFile := False;
Report.PDFSettings.ScaleImages := False;
Report.PDFSettings.FontEncoding := feUnicode;
Report.PrintToDevices;

Thank you.
Mario Enríquez

Comments

  • Hi Mario,

    When exporting to PDF from the preview, the same PrintToDevices code is called.

    The issue is likely that the ScaleImages property is being set to True at some point when exporting in code.

    Are you loading templates? If so, the setting saved down with the template will overwrite the existing setting.

    If you still can't find it, try placing a break point in the TppPDFSettings.SetScaleImages routine to see exactly where the property is being altered.
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
Sign In or Register to comment.