dsPrinter is used for printing. It is used just
like TPrinter except it has a lot of additional properties and procedures to
work with. dsPrinter works with
metafiles so you can always replay pages to some other canvas like jpg or pdf.
These way print preview is done and dsPrintPreview is a component that comes
To print with dsPrinter you set page size, call
BeginDoc, do your priting and call EndDoc. After that you can preview, print or
anything else. Here are some things that might be interesting:
- print side pages (if db grid for
example is to wide to
fit to one page, you can use side pages and just attach those pages
horitontaly one next
to other after you print things out.
are stored in metafiles so you can replay that metafiles to any canvas
(already supported are print preview, jpg, and pdf if you have pdf library
like llPDFLib of llionsoft).
various info about printers (duplex support, supported paper names and
- print angled text and squeezed text
swaping of pages
tell printer which pages to print (1, 2-7)
two pages per sheet
- print TreeView
dsPrinter already comes with dsReport.