Is there a way to control the size of the Print Preview Window? When I have the DeviceType property set to Screen and call the Print method, the window pops up but its pretty small. I would like for the window to be maximized.
On the OnPreviewFormCreate of the report: (Sender as TppReport).PreviewForm.WindowState := wsMaximized; TppViewer((Sender as TppReport).PreviewForm.Viewer).ZoomSetting := zs100Percent;
You can re-use this code for all the reports. And need to include the ppviewr unit in the uses clause.
In the next version of ReportBuilder, a PreviewFormSettings property has been added to all producer descendents so that the preview form settings can be easily configured. The current method using an event handler will still be supported.
Comments
(Sender as TppReport).PreviewForm.WindowState := wsMaximized;
TppViewer((Sender as TppReport).PreviewForm.Viewer).ZoomSetting :=
zs100Percent;
You can re-use this code for all the reports. And need to include the
ppviewr unit in the uses clause.
been added to all producer descendents so that the preview form settings can
be easily configured. The current method using an event handler will still
be supported.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com