D
Daniel Shookowsky
I'm using the AxDrawingControl provided with Visio 2003 professional in a
..NET application. I just created an Event sink for Visio using
AddAdvise/IVisEventProc, but unfortunately, I've just discovered that
returning false from this method does not have the desired effect of
cancelling the event. (Closer inspection of the documentation shows that
this only works for Query* events.)
When the Visio is updated, I'd like to checkout the document. If the
checkout fails, I don't want the change to persist on screen.
I've tried the Undo method of the application, but this consistently
throws an Exception with the almost, but not quite entirely, useless
message "An exception occurred"
The entire point of replacing the standard events with AddAdvise-raised
events was to provide a single location where checkout and
undo/event-suppression could occur.
I know that it may be possible to load the Visio document into some type
of viewer control, but the application is largely complete minus this
feature and I'd prefer not having to made such a large change at this
point in the development cycle.
..NET application. I just created an Event sink for Visio using
AddAdvise/IVisEventProc, but unfortunately, I've just discovered that
returning false from this method does not have the desired effect of
cancelling the event. (Closer inspection of the documentation shows that
this only works for Query* events.)
When the Visio is updated, I'd like to checkout the document. If the
checkout fails, I don't want the change to persist on screen.
I've tried the Undo method of the application, but this consistently
throws an Exception with the almost, but not quite entirely, useless
message "An exception occurred"
The entire point of replacing the standard events with AddAdvise-raised
events was to provide a single location where checkout and
undo/event-suppression could occur.
I know that it may be possible to load the Visio document into some type
of viewer control, but the application is largely complete minus this
feature and I'd prefer not having to made such a large change at this
point in the development cycle.