vcl-dxpscore-dot-tcustomdxcomponentprinter.md
Provides access to the Print Preview dialog.
property PreviewWindowForm: TForm read;
| Type |
|---|
| TForm |
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.
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