PrintPagesToPrinterObject

Rendering and printing

Description

Renders a page range list from the selected document to the printer specified by the Delphi TPrinter object.

Syntax

Delphi

Function TPDFlib.PrintPagesToPrinterObject(APrinter: TPrinter; Const PageRanges: WideString; Options: Integer): Integer;

Parameters

APrinterA Delphi TPrinter object
PageRangesA list of pages to print, for example "1-10,12,14"
OptionsUse the PrintOptions function to obtain a value for this parameter

Return values

Returns 1 when the requested pages were sent to the printer. Returns 0 when the print job was cancelled before it started or rendering failed; check LastRenderError for the reason.