Skip to main content

TdxPreviewOptions.Caption Property

Specifies the Print Preview dialog’s caption.

Declaration

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