Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The Microsoft Word Document.Save() method acting up
Message
De
09/03/2001 08:57:08
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
04/03/2001 15:40:01
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00479346
Message ID:
00483475
Vues:
15
>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

I don't know. Maybe you might try to query oWord.ActiveDocument.Saved with a timer.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform