I wrote some javascript that does a mailmerge in word and then prints the document. After printing is done I need to close the document, quit the word application and delete the datasource file from the client machine. I have all this working except when there are many pages to print, the application attempts to close the file and I get an error saying the document is currently printing and can not be closed. <BR><BR>The question I have is how can I test to see if the printing is done before issuing the close and quit commands?<BR><BR>cheers<BR>james