Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Discarding changes
Message
 
À
08/09/2000 14:21:12
Héctor Lizarraga
Gobierno Del Edo de Querétaro
Querétaro, Mexique
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00414309
Message ID:
00414382
Vues:
24
>When i create an OLE object (Excel in this case) with createobject() and the user performs some changes into the sheets and cells via VFP to later print the results, when I close the object with:
>
>oExcel=.null.
>release oExcel
>
>Excel ask for saving the changes that the user has made it.
>How can i get rid of this?
>
>I want no asking for saving changes, discard them all. Let the spreadsheet without any changes.
>
>Any idea
>
>Thanks in advance
>Héctor L.

Héctor, you may use

oExcel.ActiveWorkBook.Saved = .t.

before closing Excel.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform