TCustomdxComponentPrinter.PreviewWindowForm Property
Provides access to the Print Preview dialog.
Declaration
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.
procedure TForm1.dxComponentPrinter1BeforePreview(Sender: TObject);
begin
with dxComponentPrinter1.PreviewWindowForm do
begin
Left := 10;
Width := 250;
Height := 250;
Top := 50;
end;
end;
See Also