Skip to main content

TBasedxReportLink.PrintPagesEx(TdxPSPageIndexes,TdxPageNumbers,Integer,Boolean) Method

Prints the specified report pages.

Declaration

procedure PrintPagesEx(const APageIndexes: TdxPSPageIndexes; APageNums: TdxPageNumbers; ACopyCount: Integer; ACollate: Boolean);

Parameters

Name Type
APageIndexes TdxPSPageIndexes
APageNums TdxPageNumbers
ACopyCount Integer
ACollate Boolean

Remarks

Call this procedure to print specific report pages whose numbers are passed as the APageIndexes parameter. In addition to the functionality provided by the PrintPages procedure, PrintPagesEx allows you to specify:

  • The required number of printed copies (ACopyCount);

  • Whether the printed pages are collated (ACollate);

  • If only the odd or even report pages are printed (APageNums):

align=”center” colspan=”3” !

Value

Description

colspan=”3” |

pnAll

The PrintPagesEx procedure prints all pages whose numbers are passed as the APageIndexes parameter.

pnEven

The procedure prints only the even pages from the specified list.

pnOdd

The procedure prints only the odd pages from the specified list.

If a component printer contains the report link, the PrintPagesEx procedure sets it as the current link and calls the component printer’s PrintPagesEx procedure, passing the APageIndexes, ACopyCount, ACollate, and APageNums values as parameters. If the ComponentPrinter property is set to nil (i.e., the report link does not belong to a component printer), calling the PrintPagesEx procedure has no effect.

See Also