Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Release Automated Excel Session?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00245024
Message ID:
00245215
Vues:
18
>I am using VFP to automate services from Excel:
>oExcel=CREATEOBJECT('Excel.Application")
>oExcel.WorkBooks.Open('MYXLS.XLS')
>oExcel.Application.Run("Auto_Open")
>oExcel.Application.quit
>
>Things go as expected. However, pressing CTRL+ALT+DELETE to view "open programs" shows Excel still open.
>
>Is there a method to clear Excel from memory through the client, or is there an API (how would it be structured?) to remove Excel from the "Close Program" window
>
>Thankyou,
>Terry

Try changing "oExcel.Application.quit" to:
oExcel.quit
release oExcel
Michael McLain
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform