>llPrintBackGround = .f. && parm 1 >lnPrintRangeType = wdPrintFromTo && parm 3 >lcOutPutFileName = "" && parm 4 >lcFrom = "1" && parm 5 >lcTo = "1" && parm 6 >lnCopies = "1" && parm 8 >lcPageRange = "" && parm 9 if parm 3 is wdPrintRangeOfPages >llPrintToFile = .f. && parm 11 only if lcOutPugFileName is used > >oWord.oDocument.PrintOut(llPrintBackGround, , lnPrintRangeType, , lcFrom, lcTo, , lnCopies) >Passing 0 or .F. is the same thing. However, I used your approach to pass a logical.
loWord=CREATE('Word.Application') loWord.Documents.Open('d:\myfile.doc') loWord.ActiveDocument.PrintOut(.F.) loWord.QuitThat prints the document. I see the printer status in VFP. After, I have the message from Word if I want to save my document. If I don't print, I don't have this message.