Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to read xml document being used by the another process?

How to read xml document being used by the another process?

Scheduled Pinned Locked Moved C#
xmlhelpcsharptutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shaik Haneef
    wrote on last edited by
    #1

    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

    C P 2 Replies Last reply
    0
    • S Shaik 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

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • S Shaik 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

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3
        1. 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.
        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups