How to read xml document being used by the another process?
-
hi all, i am generating an office word 2007 document using C# in windows application, then saving the word document in the xml format in my local system. Here my requirement is using that xml file and one predefined xsl file i need to generate one xslt,while doing this process i am getting the error like the "document is already being used by the another process." any one please help on this...it is urgent for me Regards, Haneef
-
hi all, i am generating an office word 2007 document using C# in windows application, then saving the word document in the xml format in my local system. Here my requirement is using that xml file and one predefined xsl file i need to generate one xslt,while doing this process i am getting the error like the "document is already being used by the another process." any one please help on this...it is urgent for me Regards, Haneef
Shaik Haneef wrote:
t is urgent for me
Well, I'm afraid you're all out of luck. A basic understanding of computers will tell you that the reason you get this error, is that you can't access a file being used by another process. Your only option really, if you MUST have access, is to find out the process that's locking it ( that would be Word, from the sound of it ), and kill it. I am sure that's not the result you're looking for.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
hi all, i am generating an office word 2007 document using C# in windows application, then saving the word document in the xml format in my local system. Here my requirement is using that xml file and one predefined xsl file i need to generate one xslt,while doing this process i am getting the error like the "document is already being used by the another process." any one please help on this...it is urgent for me Regards, Haneef
- The app that's creating the file would need to allow concurrent reads. 1) But with XML, having access to only a partial document is useless. 2) Ergo, the creating app would need to write the entire file before the reading app reads it, so the creating app might as well close the file and exit before the reading app runs. Some of what you wrote (e.g. "one predefined xsl file i need to generate one xslt") is gibberish.