Hi Victoria,
>I had tried closing Word after use, but a message box pops up and say, "not done printing, close anyway?" This meant that the user either kept it open or closed before the printing was done.
>
>Do you have a suggestion on how I can tell when the Word printing has been completed so that I can close the app?
Ok, the solution is in this KB article:
http://support.microsoft.com/support/kb/articles/Q241/9/42.ASP?LN=EN-US&SD=gn&FR=0If it were myself doing this,after executing Words print method, I would implement a timer that fires every second with this code:
PROCEDURE Timer1_Timer()
DoEvents()
IF oWord.BackgroundPrintingStatus = 0
This.enabled = .f.
oWord.Quit()
This.destroy()
ENDIF
ENDPROC
This way, your program (and ultimately the user) doesnt have to wait until Word is through printing to continue.
Jon