🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13834

Re: Excel Exists on machine?

#13834
From: Shane Stump
Date: Wed, 17 Sep 2003 10:54
38 lines
2288 bytes
I am trying to avoid loading Excel if the user doesn't need to save a report
(some of my users' machines are VERY slow). You may be right though and I
may have to load Excel to REALLY tell if it installed on the machine.

Regards,

Shane

"Vladimir Afanasyev" <avv@systema.kiev.ua> wrote in message
news:3f680e95$1@newsgroups.borland.com...
>
> Hi,
> "Shane Stump" <ShaneStump@TanstaaflSoftware.com> wrote:
> >I prefer the little more "fluff" in this type code because I have a
tendency
> >to "add" to such functions as I go along (in case of different versions
of
> >excel, etc).
> >
>
> Really, using this way you only test that this record (ProgId)
> exists in the Registry. Yes, you can read it but you can
> write it the same way also.
> You can try to use follow way:
>
> Variant Excel;
> try{
> Excel=Variant::CreateObject("Excel.Application");
> }
> catch(...)
> {
> ShowMessage("No, it is not Excel");
> return;
> }
> ShowMessage("Seems Excel");
>
> Vladimir.
>
Technical Details
Message-ID: <3f683d4c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!diablo.voicenet.com!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f67b06e$1@newsgroups.borland.com> <3f67b90a@newsgroups.borland.com> <3f67cfa0$1@newsgroups.borland.com> <3f67d109@newsgroups.borland.com> <3f67d35a$1@newsgroups.borland.com> <3f680e95$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,6956ac1eb736942d
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-17 04:10:08 PST
Reply-To: "Shane Stump" <ShaneStump@TanstaaflSoftware.com>
From: "Shane Stump" <ShaneStump@TanstaaflSoftware.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f67b06e$1@newsgroups.borland.com> <3f67b90a@newsgroups.borland.com> <3f67cfa0$1@newsgroups.borland.com> <3f67d109@newsgroups.borland.com> <3f67d35a$1@newsgroups.borland.com> <3f680e95$1@newsgroups.borland.com>
Subject: Re: Excel Exists on machine?
Date: Wed, 17 Sep 2003 05:54:04 -0500
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 209.219.240.162
Message-ID: <3f683d4c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1063796044 209.219.240.162 (17 Sep 2003 03:54:04 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!diablo.voicenet.com!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail