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 :
Show quoted text 21 lines