dev
2007-09-14 22:34:02 UTC
hi to all, I have an issue with a feature of an addin.
I did a simple word add-in that catch the "Save" event and the "Print" event.
When the addin catchs these events, it must show a simple MSGBOX ("bye") and
MSWord doesn't save or print the active document.
For do that, I used a object word and catch the event "documentBeforeSave"
and "documentBeforePrint" and I see on the MSDN that If I set a Cancel
variable to TRUE the active document doesn't saved.
The problem is If I set Cancel variable to TRUE, the document will be saved
anyway!
What is the problem? there is a bug in the framework, or I'm not using it in
the right way?
thank you!
I did a simple word add-in that catch the "Save" event and the "Print" event.
When the addin catchs these events, it must show a simple MSGBOX ("bye") and
MSWord doesn't save or print the active document.
For do that, I used a object word and catch the event "documentBeforeSave"
and "documentBeforePrint" and I see on the MSDN that If I set a Cancel
variable to TRUE the active document doesn't saved.
The problem is If I set Cancel variable to TRUE, the document will be saved
anyway!
What is the problem? there is a bug in the framework, or I'm not using it in
the right way?
thank you!