Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The Microsoft Word Document.Save() method acting up
Message
From
04/03/2001 15:40:01
 
 
To
02/03/2001 02:03:06
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00479346
Message ID:
00481759
Views:
21
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform