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

TppReport. OnPreviewFormCreate Bug?

edited December 2003 in General
This is for 6.03.

I was trying to set the preview form size and Window in this event
handler but it wasn't firing despite being clearly visible in the events
tab of the Object Inspector (D4 Sp2 BTW). I had a breakpoint on it and
the Previewform would just appear.

I eventually assigned the evnt handler at runtime and that worked.

David Bolton

Comments

  • edited December 2003
    Hi David,

    This is not a known issue with ReportBuilder. Try creating a minimal
    application consisting of a form, report object, and a button. In the
    OnClick of the button call Report.Print;. Then inside the
    Report.OnPreviewFormCreate event place a ShowMessage or Beep. In all of my
    testing this event has fired when the button was pressed.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.