General information
Category:
COM/DCOM and OLE Automation
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
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