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

Higher resolution on JPG via Save to File option

edited February 2013 in Devices
Hi,

I'm trying to save my reports as JPG files, but the output resolution is
rather poor. For example, if I export a report that has a custom size of 4"
x 6", the resulting JPG is 384 x 576, which is way to low. Any ideas as of
how to make ReportBuilder to use higher resolutions?

Jb.

Comments

  • edited February 2013
    Hi Jb,

    The built-in jpg export uses the default resolution of a TJPEGImage
    object created with Delphi. You can access the TJPEGImage object
    directly and adjust its properties using the OnFileDeviceCreate event of
    the report.

    uses
    ppImageDevice;

    begin
    if Report.FileDevice is TppJPGDevice then
    TppJPGDevice(Report.FileDevice).JPEG.CompressionQuality := ...;
    end;

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.