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

OnSaveEnd Event

edited September 2004 in General
i hav a Report.Template.OnSaveEnd := SaveEnd event,
what i do in SaveEnd event is a validation of my database,
to validate a boolean field named 'IsSystem', if IsSystem is True then
i wan the Event to terminate the Save process, when false save to database.
i think this is fairy simple, but i couldn't manage to solve it or i'm doing
the whole thing in the wrong direction?

any suggestions or solutions r much appreaciated

Comments

  • edited September 2004
    Hi,

    Looking at the source, the OnSaveStart and OnSaveEnd events are not designed
    to allow you to terminate the save process. These events are simply called
    too late to have an effect on the save process. You are going to need to
    catch this action earlier, perhaps when the user selectes File | Save from
    the menu.

    --
    Best Regards,

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