Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving as Word doc
Message
De
04/04/2000 14:44:30
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Saving as Word doc
Divers
Thread ID:
00355154
Message ID:
00355154
Vues:
64
I need to save a document as a Word 97 format document in a specific place and need to auto-overwrite any old files.Here's what I've got so far...

oword = CreateObject("Word.Application")
WITH oword
.Documents.Open(print_file)
.ActiveDocument.PrintOut(0,0,range,"",from,to)

this is what came out of the Word 97 macro editor. I can't make heads or tails of how to turn this into usable Foxpro code.

.ActiveDocument.SaveAs FileName:="54947.doc", format:=wdFormatDocument, _LockComments:=False, Password:="", AddToRecentFiles:=True, WritePassword _:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False,
_SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _False


.ActiveWindow.Close

Any suggestions?
Tom Welch
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform