Ok then what about a real round-about way of doing this. Create a text file on the server (or someplace) and before your program goes to print it you write something to the file for example:

Your program runs, now before it does anything with the document it checks to see if this file exists (we'll call it CheckRunFile.txt just for the example). If the file exists then it opens that text file and looks at it.

If it reads 1 then the file is already open and the program lets the user know that it is in use elsewhere. If it is a 0 then the file is not in use and then the program replaces the file is an updated version writing a 1 in the 0 spot and then uses the document.

Then write some code so that if the file is not there it creates it and updates the file with the appropriate info.

If you need any other help or code examples let me know.