TBasedxReportLink.PageSetupEx(Integer,Boolean,Boolean,Boolean,Boolean) Method
Invokes the Page Setup dialog.
Declaration
function PageSetupEx(AActivePageIndex: Integer; AShowPreviewBtn: Boolean; AShowPrintBtn: Boolean; out APreviewBtnClicked: Boolean; out APrintBtnClicked: Boolean): Boolean; overload;
Parameters
Name | Type |
---|---|
AActivePageIndex | Integer |
AShowPreviewBtn | Boolean |
AShowPrintBtn | Boolean |
APreviewBtnClicked | Boolean |
APrintBtnClicked | Boolean |
Returns
Type |
---|
Boolean |
Remarks
Call this function to invoke the Page Setup dialog with the active tab whose zero-based index is passed as the AActivePageIndex parameter.
The AShowPreviewBtn and AShowPrintBtn parameters specify whether the “Print Preview…” and “Print…” buttons are displayed on the Page Setup dialog form while the APreviewBtnClicked and APrintBtnClicked parameters are used to identify if any of the buttons was clicked to close the dialog.
The PageSetupEx function returns True if an end-user:
Clicks the “Ok” button on the Page Setup form;
Closes the Print Preview dialog invoked by clicking the “Print Preview…” button on the Page Setup form;
Clicks the “Print” button on the Print dialog invoked by clicking the “Print…” button on the Page Setup form.
Otherwise, the function returns False.