Skip to main content

TCustomdxComponentPrinter.PrintEx(TdxPageNumbers,Integer,Boolean,TBasedxReportLink) Method

Prints report pages.

Declaration

procedure PrintEx(APageNums: TdxPageNumbers; ACopies: Integer; ACollate: Boolean; AReportLink: TBasedxReportLink = nil);

Parameters

Name Type
APageNums TdxPageNumbers
ACopies Integer
ACollate Boolean
AReportLink TBasedxReportLink

Remarks

Call this procedure to print the odd, even, or all report pages depending on a value passed as the APageNums parameter:

Value Description
pnAll The PrintEx procedure prints all report pages.
pnEven The procedure prints only the even report pages.
pnOdd The procedure prints only the odd report pages.

Pass the number of printed copies and the page collation flag as the ACopies and ACollate parameters, respectively.

By default, the PrintEx procedure prints the component printer’s current report link. To print a specific report link, pass it as the optional AReportLink parameter.

If you need to print only a single page or a specific list of report pages, call the PrintPages or PrintPagesEx procedure instead.

See Also