Article View: borland.public.cppbuilder.nativeapi
Article #5548Re: How to verify a file is not opened in EXCEL
From: Vladimir Stefanovic
Date: Sat, 06 Aug 2005 06:57
Date: Sat, 06 Aug 2005 06:57
27 lines
1757 bytes
1757 bytes
I'm not sure how to check if it's opened by EXCEL but I know how to check if it is opened by some other program. Look at: http://tinyurl.com/75nlq There is a routine IsFileOccupied(). Also this routine must be executed after checking if file exists, etc... -- Best regards, Vladimir Stefanovic "Tom Woodrow" <tomwoodrow@comcast.net> wrote in message news:42f4520f$1@newsgroups.borland.com... > Hope that this is the correct group. > > I load CSV files into TStringGrid (or TAdvStringGrid). This works great > unless the CSV file is already opened in EXCEL. If this happens I get > error that I can't seem to trap with try/catch. > > What is the best way to verify that a CSV file is NOT already opened in > EXCEL before attempting to open with string grid? > > Thanks > Tom Woodrow
Technical Details
Message-ID:
<42f45f75$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newspeer.tds.net!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42f4520f$1@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 From: "Vladimir Stefanovic" <antivari@po.sbb.co.yu> Newsgroups: borland.public.cppbuilder.nativeapi References: <42f4520f$1@newsgroups.borland.com> Subject: Re: How to verify a file is not opened in EXCEL Date: Sat, 6 Aug 2005 08:57:58 +0200 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 82.117.212.65 Message-ID: <42f45f75$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1123311477 82.117.212.65 (5 Aug 2005 23:57:57 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newspeer.tds.net!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail