Execuete code whenever a document is opened

A

Ashish_Jaipur

Hi All

I am developing an Add-In for Word in VB.net. I need to know a way by which
a certain peice of code is executed everytime user opens a document.

Pls help
 
S

shashi.behari

(i know you need a VB solution, but i only know one for C#, should be
similar)

these are the events you need to handle:
visioApplication.DocumentOpened
visioApplication.DocumentCreated

you need Event Handlers of the following type:
EApplication_DocumentOpenedEventHandler
EApplication_DocumentCreatedEventHandler
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top