Quickreport forum
Go to Quickreport website
Welcome Guest Search | Active Topics | Log In | Register

Implementing high-resolution images in PDF exports.
#1 Posted : 12 June 2018 05:41:35(UTC)
Rank: Administration

Groups: Administrators
Joined: 27/06/2016(UTC)
Posts: 27

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)

This applies to the TQRImage control, where the picture is loaded at
design-time, or in an event at run-time.

1. In order to get high-quality in the PDF document, the original image must be
larger than the area it will be displayed in on the report.

2. For example, if the image control is 200x100 pixels, and the original image
is 400x200 pixels, then the image in the PDF document will display without
degradation at zoom 200%.

3. To implement the feature, set the QRImage.Stretch to false, and the QRImage.Tag property to 999.

Images from database fields

Instead of using a TQRDBImage, use a TQRImage and load the field in the 'beforePrint' event of the band.

Something like

QRImage1.picture.assign( quickrep1.dataset.fieldbyname('blob-field') );

Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Clean Slate theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.019 seconds.