NicePreview Component

A component that aimed to be an easy-to-use print preview control.
Download

NicePreview Component Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Publisher Name:
  • Priyatna Codes
  • Publisher web site:
  • Operating Systems:
  • Windows XP/2000/98
  • File Size:
  • 328KB

NicePreview Component Tags


NicePreview Component Description

NicePreview is a free 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. # procedure ReadPrinterConfig; This method will read current configuration of printer: PaGE height, page width, dot per inch, etc. NicePreview will not be notified when printer configurations change. So you have to call this method after executing TPrinterSetupDialog or TPrintDialog. # function BeginPage: TCanvas; This is will allocate a canvas (TMetafileCanvas) for a new page. You can start drawing on the canvas returned by this function. # procedure EndPage; This method must be called when you finish drawing on the canvas returned by BeginPage. Each BeginPage must be closed by EndPage. # procedure Clear; Clears all pages.


NicePreview Component Related Software