Hi
I have a C# application which opens a macro enabled Visio document. Once opened, Visio performs some operation and does a Save at the end. In the C# application I would like to catch this save event. Following is my C# code:
// Create an instance of the visio application
visioApp = new Visio.Application();
visioApp.Documents.Open(visioFileStr);
visioApp.DocumentSaved +=
new Visio.EApplication_DocumentSavedEventHandler
(Application_DocumentSaved);
private void Application_DocumentSaved(Visio.Document doc)
{
// message stating save event is captured
}
The C# application does not capture the Save event triggered by the VBA code in the macro. Can a C# application capture an event triggered by VBA code? If yes, what am I doing wrong?
When I manually press the save button on the open Visio drawing, the C# application is capturing the event. But it is not capturing the event triggered through VBA code.
I really appreciate if some one could help me with this.
Thanks,
K