Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word and OLE
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00284559
Message ID:
00285017
Views:
24
Dear Mary-Ann,

Since I have had some of these same issues come up recently I thought I would pass along the corrent command to save your file:

oWord.WordBasic.FileSaveAs("filename.doc")

Don't ask me why this works and the oWord.ActiveDocument.SaveAs("filename.doc) doesn't but I have found that while working with VFP 5.x and Word97, the WordBasic commands seem to work.

Hope this helps!

Dave :-)

>Trying to automate that if a particular document isn't found, get the template >and do a FileSaveAs and create it. Using oword.createobject
>("Word.Application"), and can open the file (Documents.open) but there's no >SaveAs there. Used the Object Browser and found under "Document" a SaveAs, but >can't get it to work. Not sure what I'm doing wrong. Really need to know how >to change directories, FileSaveAs and run macros. Can Someone help? (God Bless >whoever responds!)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform