Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TBasedxReportLink.PrintPages(TdxPSPageIndexes) Method

Prints the specified report pages.

#Declaration

Delphi
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:

Delphi
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.

See Also