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
with dsPrinter.
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.
- pages
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).
- get
various info about printers (duplex support, supported paper names and
metrics,…)
- print angled text and squeezed text
- supports
swaping of pages
- easy
tell printer which pages to print (1, 2-7)
- print
two pages per sheet
- print
booklet
- print
strings
- print TreeView
- print
rich
- print
synedit
- includes
dsDBGridPrinter
dsPrinter
is shareware. You can purchase it at Share-it. Product id
300045363.
dsPrinter already comes with dsReport.


demo