Introduction - If you have any usage issues, please Google them yourself
NicePreview is a Delphi component that aimed to be an easy-to-use print preview control. This is a shortcut to add a sophisticated print preview and off course printing feature to your application, bypassing a nitty-gritty screen-printer dpi (dot per inch) issue. All you have to do is dropping the component and write some routines to paint on it like an ordinary screen canvas (96 dpi by default). Yes, it uses screen dpi, not printer s. So you don t have to worry about converting them to different dpi of printer. All in pixel coordinate.
NicePreview will not be notified when printer configurations change. So you have to call ReadPrinterConfig method after executing TPrinterSetupDialog or TPrintDialog, and redraw all pages to reflect the changes. Seems complicated, but trust me, it s not difficult. See demo project included.