Information générale
Catégorie:
COM/DCOM et 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!)
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement