TCustomdxComponentPrinter.PrintPages(TdxPSPageIndexes,TBasedxReportLink) Method
Prints the specified report pages.
Declaration
procedure PrintPages(const APageIndexes: TdxPSPageIndexes; AReportLink: TBasedxReportLink = nil);
Parameters
Name | Type |
---|---|
APageIndexes | TdxPSPageIndexes |
AReportLink | TBasedxReportLink |
Remarks
Call this procedure to print specific report pages whose numbers are passed as the APageIndexes parameter. By default, the PrintPages procedure prints the component printer’s current report link. To print a specific report link, pass it as the optional AReportLink parameter.
The following code example prints the first and fourth pages from the current report link:
var
APages: TdxPSPageIndexes; // The list of printed report pages
//...
SetLength(APages, 2); // Initialize the dynamic array's size
APages[0] := 1;
APages[1] := 4;
dxComponentPrinter1.PrintPages(APages);
If you need to apply additional parameters (such as the number of printed copies, page collation flag, etc.) to the report page printing operation, call the PrintPagesEx procedure instead.
See Also