Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel starter edition
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01535050
Message ID:
01535052
Vues:
56
>>Today had a user who was having problems using my Excel automation.
>>
>>Turns out that she has a starter edition of Excel.
>>
>>Looks like this line doesn't run when the Excel installed is the starter edition:
>>
	oExcel = Createobject("Excel.Application")
>>
>>First time I've come across this edition.
>>
>>Is it correct that VFP cannot be used with Excel starter edition?
>>
>>Also, how would one test for this edition so I can give user a warning that Excel automation won't work?
>>
>>Cyril
>
>Not only VFP,
>No application can use Excel Automation with Excel Starter edition, just because it isn't installed.
>Try this:
>
>fl_error = .f.
>TRY
>   oExcel = Createobject("Excel.Application")
>CATCH
>   fl_error = .t.
>ENDTRY
>IF m.fl_error
>  MessageBox("No Excel Automation module installed on this computer")
>  RETURN
>ENDIF
>
Thanks, I didn't know that. I'll use your code suggestion.

Anyone know if there is a specific test to see if the version of Excel installed on a PC is the starter edition?

Cyril
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform