none
C++ sample code to cathc events while automating Visio. RRS feed

  • Question

  • Hi all,

     

    I am trying to automate Visio using C++.

    I want to catch Visio events in my code. For example, when I close the Visio document, one of my code callbacks should hit. I could do it with PowerPoint using the method described in the below link:

    http://support.microsoft.com/kb/309309 ( Adding an MFC class using class wizard and implementing the event sink methods.)

    But, the same method is not working for Visio. I am finding difficulties using the EventList method. Can some one help me with a sample code which can open a Visio document and on closing that document, some method inside my code should get hit.

     

    Thanks in advance,

    Prasnth

     

    Tuesday, February 1, 2011 2:05 PM

Answers