Hi,
I've been using TPrintpreview for a while and it works perfect, thank you for the product!
I recently came across an issue when using TPrintPreview on a windows8 laptop. When the user has increased the font-size then TPrintPreview does not apply the Screen.PixelsPerInch corredctly.
On a win7 machine, the Screen.PixelsPerInch returns 120 when the font-size is increased to 125%. On windows8 it always returns 96, which makes TPrintPreview fail in showing the canvas correctly.
I found others reporting this issue about windows8 as well. On of the solutions I found was to read the registry HKEY_CURRENT_USER\CONTROL PANEL\Desktop\WindowMetrics which holds the correct value.
I ended up adjusting preview.pas so it reads the value from registry as well. When registry and Screen.PixelsPerInch are not the same, then I take the assumption the value from the registry is the correct one.
So far it seems to be working for me, so I thought to share this information.
Thanks for the great product again!
Peter