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

TdxPreviewOptions.Caption Property

Specifies the Print Preview dialog’s caption.

#Declaration

Delphi
property Caption: string read; write;

#Property Value

Type
string

#Remarks

Use the caption to provide a user with more information about a printed component. The following code is the same as when setting the caption of the Print Preview dialog within the TdxComponentPrinter.OnBeforePreview event handler:

// using Caption
// ...
dxComponentPrinter1.PreviewOptions.Caption := "New Preview Caption";
dxComponentPrinter1.Preview(...);
// ...
// An OnBeforePreview event handler
procedure TForm1.dxComponentPrinter1BeforePreview(Sender: TObject);
begin
// ...
  dxComponentPrinter1.PreviewWindow.Caption := "New Preview Caption";
// ...
end;
See Also