General information
Category:
COM/DCOM and OLE Automation
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only