Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word and OLE
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00284559
Message ID:
00285017
Vues:
23
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
Fil
Voir

Click here to load this message in the networking platform