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

Closing a non-modal report progamatically

edited August 2004 in General
How do I programmatically close a non-modal report form? If I just
close the form the component is on, I get AV's all over the place.

D7 Ent.
RB 7 Ent.

Thanks,

--
Rick Dement
Ideal Software Systems, Inc.

Comments

  • edited August 2004
    Rick Dement wrote:


    Ok I found This:
    MyReport.PreviewForm.Close;

    I also had to add this before it:
    If Assigned(MyReport.PreviewForm) and MyReport.PreviewForm.Visible
    Then

    Works great. Thanks anyway... unless someone has a better way.

    --
    Rick Dement
    Ideal Software Systems, Inc.
This discussion has been closed.