TBasedxReportLink.PrintPages(TdxPSPageIndexes) Method
Prints the specified report pages.
Declaration
procedure PrintPages(const APageIndexes: TdxPSPageIndexes);
Parameters
Name | Type |
---|---|
APageIndexes | TdxPSPageIndexes |
Remarks
Call this procedure to print specific report pages whose numbers are passed as the APageIndexes parameter. The following code example prints the first and fourth pages from the 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;
dxComponentPrinter1Link1.PrintPages(APages);
If a component printer contains the report link, the PrintPages procedure sets it as the current link and calls the component printer’s PrintPages procedure, passing the APageIndexes value as a parameter. If the ComponentPrinter property is set to nil (i.e., the report link does not belong to a component printer), calling the PrintPages procedure has no effect.
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.