Back to Devexpress

TCustomdxComponentPrinter.OnBeforePreview Event

vcl-dxpscore-dot-tcustomdxcomponentprinter-4dff4faf.md

latest1.0 KB
Original Source

TCustomdxComponentPrinter.OnBeforePreview Event

Occurs before the preview window is to be activated.

Declaration

delphi
property OnBeforePreview: TdxPreviewEvent read; write;

Remarks

Handle this event to perform specific actions when displaying the preview window of the report contained in the link specified by the AReportLink parameter. For instance, the following code changes the caption of a preview window of the active link (dxComponentPrinter1BeforePreview is an OnBeforePreview event handler).

procedure TForm1.dxComponentPrinter1BeforePreview(Sender: Tobject; AReportLink: TBasedxReportLink);
begin
  dxComponentPrinter1.PreviewWindowForm.Caption := 'Report Preview Form';
end;

See Also

TCustomdxComponentPrinter.DoBeforePreview

TCustomdxComponentPrinter Class

TCustomdxComponentPrinter Members

dxPSCore Unit