Home General

Preview Plugin Question

edited January 2011 in General
I have a preview plugin (version 11.04 or 11.08 of the report writer
cannot remember which).

Developing in delphi 2010.

My preview plugin is inherited from TppPreview like below:

TxxPreviewPlugin = class(TppPreview)

My question: is there a way to determine, in the CreateToolBarItems (or
some similar event available on the preview plugin), that the report is
being edited in the designer or the report is just being previewed from
the preview form. I tried DesignState (was blank), Report (was nil),
FormDesigner (did not work).

Thanks

Comments

  • edited January 2011
    You can use the boolean Viewer.DesignViewer property to determine whether
    the Preview is created by the Designer. (TppPreview.Viewer.DesignViewer)


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com


    Best regards,

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