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

TCustomdxComponentPrinter.OnBeforePreview Event

In This Article

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