[Lazarus] LazReport - Where the width of the designer page come from?

Jesus R. jesusrmx at gmail.com
Mon Sep 18 17:48:38 CEST 2017

LazReport does not use the standard or known paper size, it uses the
printer reported values.

For calculating the paper width it doesn't convert from mm, instead it
uses the physical width of paper in dots at printer resolution
then for the screen dimensions it scales down the value to a fixed
resolution of 93 ppi and some account for aspect ratio which
gives approximately 91 ppi, in other words LazReport scales the paper
width to a fixed ppi, not to current screen ppi.

The calculations are as follow (for my selected printer of resolution
of 600 dpi).

Paper width=4958 dots

screen paper width =  4958/600*93/1.022=751.94 ~ 752

FreeReport should report the same and I cannot explain the differences
other than probably it doesn't use the reported printer
values but some standard ones. I don't know how the original creator
of freereport came out to a value for aspect ratio of 1.022
in the X direction, I would be glad to know for sure though.

2017-09-17 17:05 GMT-05:00 Graeme Geldenhuys via Lazarus
<lazarus at lists.lazarus-ide.org>:
> On 2017-09-17 10:50, Gabor Boros via Lazarus wrote:
>> Width of A4 is 210mm. 210/25.4*96=793.7.
> Yeah, fpReport is the only one with a sane value. :)
> Regards,
>   Graeme
> --
> fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
> http://fpgui.sourceforge.net/
> My public PGP key:  http://tinyurl.com/graeme-pgp
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus

More information about the Lazarus mailing list