Small question on Active document

B

Basavaraj

Hi All,
If i have more than one document opened in an application instance, and if
something happens in any one of the document, for example, if i intercept
DocumentBeforeSave event of application, then how do i know that which
document is this event for..? to put it in simple words, when something
hapens in a document, how do i check from application saying which document
is affected with that action..?

Please can anyone help me in this regard.?
Thanks in advance.
 
L

Leigh

The DocumentBeforeSave event has three parameters, the first of which
is a reference to the document that raised the event. Press F2 to bring
up the object browser, then click on Application in the left-hand
column. Then click on DocumentBeforeSave in the right hand column, and
look at the details at the bottom.
 
B

Basavaraj

Hi Leigh,
Thank you very much for the reply. Yeah , i understood what you said..but i
am using this event mechanism in C++ and my invoke call back is geting called
where it gives me a DISPID as 8, then i assume that it is document before
save. So, i dont really get my DocumentBeforeSave is geting called to have
those three parameters. Infact i get an id = 8, and i know its document
before save. Can you suggest me how can i go about..?
 
J

Jezebel

How can you go about what? If you don't want to use ActiveDocument, and you
can't use the event arguments, what else is there?
 

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