TppCustomPreviewer

edited April 2011 in Component Writing
I am attempting to create a Print Preview form based on TppCustomPreviewer.
Whenever I call the Print method of a report, the form is created but an
exception is thrown before it is displayed. I tried calling the Print
method of the Report using the standard Print Preview and it worked fine.
As another trial, I created an empty form that was based on
TppCustomPreviewer and it still produced the exception. Any idea what I am
doing wrong?

Thanks



--- posted by geoForum on http://www.newswhat.com

Comments

  • edited April 2011
    Hello,

    For future reference, please use your name when posting to these
    newsgroups. Also always include the version of ReportBuilder and Delphi
    you are using.

    What type of exception are you receiving? If you trace into the RB
    source, where is the problem occuring?

    The standard method of replacing the preview is to create a custom
    preview plugin. See the following article on how this can be done.

    http://www.digital-metaphors.com/rbWiki/Plugins/Dialogs/Preview_Plugin


    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2011
    I received this same question via support@ yesterday. I recommend using the
    source to the existing preview form or preview plug-in as a starting point.
    I also recommend reviewing the source code to the ancestor classes. If you
    are using a trial version, it does not include source code and was not
    intended to be used to create custom plug-ins. If you are using a trial
    version, we ask that you please purchase a license to the product. We offer
    a 30-day money back guarantee on our products.


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

    Best regards,

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