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.PageSetupEx(Integer,Boolean,Boolean,Boolean,Boolean) Method

Invokes the Page Setup dialog.

#Declaration

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

See Also