Article View: borland.public.cppbuilder.nativeapi
Article #5551Re: How to verify a file is not opened in EXCEL
From: Tom Woodrow
Date: Sat, 06 Aug 2005 18:15
Date: Sat, 06 Aug 2005 18:15
25 lines
1742 bytes
1742 bytes
Vladimir, OK, from the IDE it works properly. Is there any way to get it to work within the IDE also. Thanks Tom Woodrow Vladimir Stefanovic wrote: >>[...] I opened a file with EXCEL and then tested it with >>IsFileOccupied (below) and get the EFOpenError >>exception. It works ok and returns false if the file is not opened. For >>some rason the try/catch mechanism is >>not working here. > > > > It works fine for me. One reason why you can get the > exception is when you start the program from IDE! > > Try to execute you program from explorer. > > >
Technical Details
Message-ID:
<42f4fe39$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!newsfeed.wirehub.nl!194.72.7.126.MISMATCH!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42f4520f$1@newsgroups.borland.com> <42f45f75$1@newsgroups.borland.com> <42f4f2f6$1@newsgroups.borland.com> <42f4f920@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,8c4c5257256193cf X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sat, 06 Aug 2005 11:15:23 -0700 From: Tom Woodrow <tomwoodrow@comcast.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: How to verify a file is not opened in EXCEL References: <42f4520f$1@newsgroups.borland.com> <42f45f75$1@newsgroups.borland.com> <42f4f2f6$1@newsgroups.borland.com> <42f4f920@newsgroups.borland.com> In-Reply-To: <42f4f920@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.6.92.22 Message-ID: <42f4fe39$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1123352121 24.6.92.22 (6 Aug 2005 11:15:21 -0700) Lines: 25 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!newsfeed.wirehub.nl!194.72.7.126.MISMATCH!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail