Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel won't paint correctly
Message
 
 
À
29/10/2002 13:25:35
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00716458
Message ID:
00716553
Vues:
16
Tamar,

I think you've hit it... I looked and according to the NT taskman excel is still in memory. I shutdown the VFP instance, but Excel still remained in memory. I killed it from taskman and then the sheet opens fine. Am I not doing something to get Excel to unload when I'm done with it?

local loExcel

loExcel = createobject( "excel.application" )
loExcel.Visible = .t.

... do stuff

loExcel.Quit()

loExcel = .null.

Well the above code works ok, Excel terminates from memory.. looks like I've got a dangling object ref in the other code... I'll go ferret it out.

Thanks for pointing me in the right direction!

>I wonder if there's an issue with Excel still holding a lock on the file in some way. I haven't run into this so much with Excel, but I've had a number of cases with Word where I can't do what I want with a file because Word's still holding onto it.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform