TRVPrint.VirtualPrinter

<< Click to display table of contents >>

TRVPrint.VirtualPrinter

Defines properties of a "virtual printer"

property VirtualPrinter: TRVVirtualPrinterProperties;

(introduced in version 17)

If VirtualPrinter.Active = True, TRVPrint prepares pages for drawing on any canvas, using page size and DPI value specified in this property. Real printers are not used in this mode.

In this mode, you cannot call methods that print multiple pages, but you can draw pages on the specified canvas using DrawPage and DrawPageAt methods. Additionally, if PDF saving engine is available, you can save document as a PDF file.

"Virtual printer" functionality is similar to the functionality provided by TRVReportHelper component. Differences:

a report helper draws document directly at the specified location; a virtual printer draws a page having the specified margins;

a report helper does not support headers and footers;

a report helper does not support printing text boxes and side notes.