Back to Devexpress

TBasedxReportLink.Preview(Boolean) Method

vcl-dxpscore-dot-tbasedxreportlink-dot-preview-x28-system-dot-boolean-x29.md

latest1.5 KB
Original Source

TBasedxReportLink.Preview(Boolean) Method

Invokes the Print Preview dialog.

Declaration

delphi
procedure Preview(Modal: Boolean = True); virtual;

Parameters

NameType
ModalBoolean

Remarks

Call this procedure to invoke the Print Preview dialog as a modal or non-modal form depending on the value passed as the Modal parameter.

If a component printer contains the report link, the Preview procedure sets it as the current link and calls the component printer’s Preview procedure passing the Modal 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 Preview procedure has no effect.

The Preview procedure is called internally by the PageSetup function if an end-user clicks the “Print Preview…” button on the Page Setup dialog.

TouchScreen Support : End-users can zoom the report displayed in the Print Preview window using the zoom gesture.

See Also

TBasedxReportLink Class

TBasedxReportLink Members

dxPSCore Unit