OnSaveEnd Event
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
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
This discussion has been closed.
Comments
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com