* instead of oWord.Visible = .t. #DEFINE wdDoNotSaveChanges 0 #DEFINE wdSaveChanges -1 #DEFINE wdPromptToSaveChanges -2 oWord.Quit( wdDoNotSaveChanges )However if you attempt to quit while it is already printing you would get an error, for that reason check if it finished before attempting to quit:
declare Sleep in win32API integer dwMillis do while oWord.BackgroundPrintingStatus > 0 Sleep(500) enddoCetin