If someone is just viewing the report, have the program open the report, process it and then close it. Don't keep the file opened while it is being viewed. Then, if you get an error while attempting to generate it, you can simply retry the operation because you know that the file will soon be closed.
...Glenn On Thu, Oct 16, 2008 at 3:57 PM, Fresh <[EMAIL PROTECTED]> wrote: > > Anyone that can help, it's MUCH appreciated: > > Here is my situation. I have a VB.Net program that multiple user's > use. Sometimes there is a problem when one user has opened one of > the > reports to read it while the other (in the program) tries to > regenerate the report resulting int the typical "File in Use" error. > What I would like to do is be able to display to the user WHO has the > report open so they can contact them to have them close it. I've > looked in the FileInfo object but it doesn't seem to have anything > tied to the user that has that file open. > > > It seems like it has to be possible. I did a little test by having > someone open a file and then I went to Start>Run and attempted to > open > the same file and it gave me the "File in Use" error which said > <filename> is locked for editing by '<name>' Do you want to... That > <name> is exactly what I need, but I need to find out where that > <name> field is stored so I can access it through my vb.net > application. > > > Any ideas? > > > Thanks! > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/DotNetDevelopment You may subscribe to group Feeds using a RSS Feed Reader to stay upto date using following url <a href="http://feeds.feedburner.com/DotNetDevelopment"> http://feeds.feedburner.com/DotNetDevelopment</a> -~----------~----~----~----~------~----~------~--~---
