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

PreviewFormSettings versus PreviewForm

edited December 2003 in End User
Hi

Can anyone tell me the difference between then properties
PreviewFormSettings and PreviewForm of the tppReport-component?

Regards
Robert

Comments

  • edited December 2003

    Definitions from the RBuilder.hlp appear below. The Report.PreviewForm is
    nil most of the time, because the PreviewForm is created/free as needed
    (i.e. when a report is printed to preview). The Report.PreviewFormSettings
    are automatically applied to the Report.PreviewForm each time it is created.




    1. Report.PreviewFormSettings

    The preview form settings control the preview form window state, zoom
    setting, and zoom percentage. These settings can be overridden at runtime by
    configuring the preview form settings on the viewer object in the
    OnPreviewFormCreate event.

    2. Report.PreviewForm

    Run-time and read-only. When a report is being previewed with the built-in
    preview form, this property contains a reference to the preview form. This
    property is most often accessed in the OnAssignPreviewFormSettings event in
    order to set various preview form properties.


    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited December 2003

    I should add that the following events are applicable:

    Report.OnPreviewFormCreate
    Report.OnAssignPreviewFormSettings
    Report.OnPreviewFormClose




    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.