How to check whether a given Document is opened or not?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,
In my program, i want to check whether a given document is opened or
not..How is this possible in C? This i wanted because, i am handling the
Document Save and Close myself. I mean, i am handling the events
DocuimentBeforeClose and DocuimentBeforeSave events and i show the SaveAs
dialog. Now i want to handle a situation where i can find whether a file with
given file name is opened or not. Please give me some idea asap.

Thanks in advance.
 
Hi =?Utf-8?B?QmFzYXZhcmFq?=,

If you'd read any of the messages in this group before posting, you'd have
realized that this is a group aimed at end-users. You want a developer
discussion group, such as word.vba.general.

I don't know about C, but in VB-languages I'd try to open the file (same as one
would to open a text file to parse it) and trap the error if it can't be opened
(because it's locked for editing).
In my program, i want to check whether a given document is opened or
not..How is this possible in C? This i wanted because, i am handling the
Document Save and Close myself. I mean, i am handling the events
DocuimentBeforeClose and DocuimentBeforeSave events and i show the SaveAs
dialog. Now i want to handle a situation where i can find whether a file with
given file name is opened or not. Please give me some idea asap.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)
 
Back
Top