Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Test for Excel instance?
Message
De
22/02/2002 09:48:44
 
 
À
22/02/2002 07:32:12
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00621712
Message ID:
00623694
Vues:
18
Zlatin:

Thanks for checking this out. Whilst it may work the way it should with Excel XP, it certainly doesn't with Excel 2000 :(

-=Gary


>>With Excel 2000 getobject will always create an instance of Excel <s>. So, it wont error, so, you can't trap for it because it wont error.
>
>Tested this with Excel XP (on Win2k) in VFP6 SP5 & VFP7 SP1:
>
>oleApp = GETOBJECT(, "Excel.Application")
>
>
>It raises OLE error if I do not have instance of Excel.
>(As it is said in VFP Help)
>
>Will test it ASAP woth Excel 2000 and will tell you if it does not raise error and if I found a workaround.
>HTH
-=Gary
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform