John,
I'm sure there are tons of different ways of doing things in Word97 as there are in VFP, but this works well for me to save the doc if it's an existing file:
this.moWord.Activate() && so Save dialog appears
this.moContractDocument.Close( wdPromptToSaveChanges, wdWordDocument, .t. )
And if it's a new file:
with this.moContractDocument
.SaveAs( this.mcContractDocumentName, , , , .t. )
.Close()
endwith
And to Print all I do is this:
this.moWorkOrderDocument.PrintOut()
>**** Currently you have to use wordbasic to do the printing.
>**** vba's print method isn't supported in versions prior to VFP 6.
>**** However, vba print preview is . . .
>*Oword.activedocument.PrintPreview
>oWord.WordBasic.FilePrint(.t.,,,,,,,1)
>**** Currently you have to use wordbasic to save the file.
>**** vba's saveas and save methods aren't supported.
>*** save the file as whatever
>*!* For this demo I'm saving the file dynamically by using the
>*!* system time as the file name and storing it in the root directory
>*!* of the c: drive. Make your adjustments to suit your needs.
>oword.wordbasic.filesaveas(lcfile)