Back to Devexpress

TCustomdxComponentPrinter.PreviewWindowForm Property

vcl-dxpscore-dot-tcustomdxcomponentprinter.md

latest1.8 KB
Original Source

TCustomdxComponentPrinter.PreviewWindowForm Property

Provides access to the Print Preview dialog.

Declaration

delphi
property PreviewWindowForm: TForm read;

Property Value

Type
TForm

Remarks

The UI of the Print Preview dialog referenced by this property includes a toolbar with different buttons and controls and a report preview provided by the TdxPSPreviewWindow component, which is accessible via the PreviewWindow property.

The following code shows how to handle the OnBeforePreview event and customize the size of the Print Preview dialog using the PreviewWindowForm sub-properties prior to displaying it.

delphi
procedure TForm1.dxComponentPrinter1BeforePreview(Sender: TObject);
begin
  with dxComponentPrinter1.PreviewWindowForm do
  begin
    Left := 10;
    Width := 250;
    Height := 250;
    Top := 50;
  end;
end;

See Also

TCustomdxComponentPrinter.Preview

TCustomdxComponentPrinter.PreviewOptions

TCustomdxComponentPrinter.PreviewWindowDesigner

TCustomdxComponentPrinter PreviewOptions and PreviewWindow Example

TCustomdxComponentPrinter Class

TCustomdxComponentPrinter Members

dxPSCore Unit