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

How to stop a report from printing [screen or printer]

edited February 2003 in General
I have a two pass report that calculates some totals. IF the total is zero
or less. the report should not be printed or display in the screen.

How can I control this?

I have tried to call PageLimitReached in the OnEndFirstPass event and still
I see the report being displayed.

(Actually the report displays first and then my breakpoint stops -- the one
in "OnEndFirstPass")

Thanks,

Isi R.

Comments

  • edited February 2003

    You need to perform this calculation outside of RB, prior to calling
    Report.Print.

    Simplest solution would be to perform the calculation in a SQL Statement.



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

    Best regards,

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