Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Office Excel.2007 won't automate
Message
De
28/10/2020 20:17:21
 
 
À
28/10/2020 16:14:31
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01676837
Message ID:
01676838
Vues:
55
You could try unregistering, then re-registering Excel as a COM server:
* In a CMD window (may need to be elevated i.e. run as administrator):
regsvr32 /u [path_to_file]\excel.exe
regsvr32 [path_to_file]\excel.exe
>Office Excel.2007 won't automate unless it has run once.
>
>m.loExcel = CreateObject("Excel.Application")
>Error Ole error code 0x80080005: Server execution failed.
>With (m.loExcel)
>
> * do neat excel stuff here
>
>Endwith && excel
>
>if i launch excel, then close it all is well.
>
>can anyone shed light on this.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform