Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The Microsoft Word Document.Save() method acting up
Message
De
04/03/2001 15:40:01
 
 
À
02/03/2001 02:03:06
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00479346
Message ID:
00481759
Vues:
20
Using vfpcomm

I need to do some processing before and after the save of a word document. By placing a 'document.save' in the 'DocumentBeforeSave()' event.. I'm gaining the ability to do that.
DocumentBeforeSave(Cancel, SaveAsUI, Doc)
  *before save processing

  Document.Save()

  *After Save processing
  
  * set cancel so that word doesn't do a second save
  Cancel = .T.
According to the documentation, the Document.Save() method should behave as follows.

-if the document is new, fire up the saveAs dialog box, if filename entered already exist.. overwrite

-if the document has been saved before, do a simple save

Everything works fine except when you try to click the 'Cancel' button on the 'saveAs' dialog(error) or you try to SaveAs to an existing file(nothing happens... have to click cancel...error)

All of this work was done so I could do some processing immediately after someone saved a word document. Using vfpcom, there isn't a DocumentAfterSave() event... So I went about trying to create one. Is there an easier way to get a documentAfterSave? If not, how can I fix my above problems?

Thank you for your time.
Steve
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform