Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Kill excel after using it???
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01548418
Message ID:
01548420
Vues:
99
This message has been marked as the solution to the initial question of the thread.
>I have some code like this:
>
>oExcelObject = CREATEOBJECT('Excel.Application')
>oExcelWorkbook = oExcelObject.Application.Workbooks.Open(tlcExcelFileName)
>oExcelWorkbook.ActiveSheet.UsedRange.EntireColumn.AutoFit()
>oExcelWorkbook.Save
>RELEASE oExcelWorkbook
>RELEASE oExcelObject
>
>My problem is that Excel is still running after I do this - so I guess the RELEASE thingys I'm doing is not the the right way to do it. Suggestions anyone?

Add after save:
oExcel.Quit()
oExcel = NULL
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform