Reply
 
Thread Tools Display Modes
  #1   Report Post  
Basavaraj
 
Posts: n/a
Default 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   Report Post  
Cindy M -WordMVP-
 
Posts: n/a
Default

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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tools button Getting disabled when a word document is opened in IE Raghuveer Govindu Microsoft Word Help 0 May 11th 05 09:47 AM
Cannot rename and save an opened document. Neil@comltd Microsoft Word Help 1 May 10th 05 07:30 AM
Is there a feature that keeps part of a document from being check. mboswell Microsoft Word Help 3 March 3rd 05 08:57 PM
Force correct number of pages when Word document is opened alan Page Layout 0 February 15th 05 02:39 PM
Newbie document question please Dudley Henriques New Users 4 January 9th 05 08:38 PM


All times are GMT +1. The time now is 07:03 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"