|
-
Dec 30th, 2000, 10:43 AM
#4
Fanatic Member
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.
www.RealisticGraphics.net
Running VS.Net Enterprise & VB 6
Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML
MSN Messenger: kmsheff
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|