Home |
Search |
Today's Posts |
#1
|
|||
|
|||
How to check whether a given Document is opened or not?
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. |
#2
|
|||
|
|||
Hi ?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 :-) |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Tools button Getting disabled when a word document is opened in IE | Microsoft Word Help | |||
Cannot rename and save an opened document. | Microsoft Word Help | |||
Is there a feature that keeps part of a document from being check. | Microsoft Word Help | |||
Force correct number of pages when Word document is opened | Page Layout | |||
Newbie document question please | New Users |