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)
Document.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