Hi,
When Word starts to process and creates the document, it is requesting a
virus scan, but I think that's within Word though. If it is the Anti
Virus software kicking in how would I go about stopping this or better
still check for this situation within the app and correct it by either
renaming the file or deleting it, assuming I can remove this 986 Error
"Sharing voliation".
Duncan
-->-----Original Message-----
-->From: Phillip Johnson [mailto:philliptjohnson@h...]
-->Sent: 16 February 2003 11:35
-->To: pro_VB_dotnet
-->Subject: [pro_vb_dotnet] Re: Documents locking up
-->
-->
-->Hi Duncan,
-->
-->Its not your virus checker kicking in is it? I have major problems
-->sometimes with virus checkers. It probably not, but its
-->worth a look.
-->Also, its not just a timing thing is it? When you get the
-->error, try
-->waiting a minute, then running the line again, could just be
-->that the save
-->is being done synchronously and is not yet finished.
-->
-->Hope this helps.
-->
-->regards,
-->
-->Phillip
-->
-->>
-->Hi guys
-->
-->I'm writing an app in VB.net that places data from a
-->database to a word 2000 document, this all works quite well.
-->The problem comes after I have saved a document several
-->times, (using "save as" within the app) due to changes
-->whilst developing, it then locks the file and the directory,
-->saying that the file is in use or there has been a sharing
-->voliation, which there is not, (not that I can see in the
-->task manager) no instance of word running.
-->
-->The directory and documents are stored on a Win2K server and
-->the app is on WinXP Pro. I end up having to reboot the XP
-->machine to clear this voliation. Is there a better way, or
-->better still why is this so called so voliation happening.
-->
-->Your thoughts please.
-->
-->Regards
-->Duncan
-->MCP, MCSD, AMIAP
-->
-->---
-->VB.NET Handbooks Library Special Offer
-->
-->Get a massive 40% off this complete library
-->of books (US residents only at the moment).
-->Free ground shipping on this 10 book bundle!
-->
-->http://www.wroxdirect.com/proddescription.asp?Bookselect=BUN10E004
-->---
-->
-->
-->
-->