Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Print Preview Window Size?

edited August 2002 in General
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.

Comments

  • edited August 2002
    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.

  • edited August 2002
    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.

    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.