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. Word to xml using C#?

Word to xml using C#?

Scheduled Pinned Locked Moved C#
csharpxmlquestionlounge
2 Posts 2 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.
  • M Offline
    M Offline
    methodincharge
    wrote on last edited by
    #1

    I have found the need to convert a word document (its text, tables and images) to an XML file that could give a general layout like the world file. Firstly is there an easier way to do this other than programatic access to the Word object model? Secondly, if I do have to programatically accomplish this, I need to assign names to to the tables, images and text. Currently I'm trying either a caption or a bookmark, but there may be an easier way. By the way I'm using Word 2000 if that is of importance, and I am also using C#. Thanks.

    D 1 Reply Last reply
    0
    • M methodincharge

      I have found the need to convert a word document (its text, tables and images) to an XML file that could give a general layout like the world file. Firstly is there an easier way to do this other than programatic access to the Word object model? Secondly, if I do have to programatically accomplish this, I need to assign names to to the tables, images and text. Currently I'm trying either a caption or a bookmark, but there may be an easier way. By the way I'm using Word 2000 if that is of importance, and I am also using C#. Thanks.

      D Offline
      D Offline
      Dan Neely
      wrote on last edited by
      #2

      One possible way to minimize use of the word object model would be to only invoke it to save the word doc in xml format, and then parse the MSxml into your format. If words xml output is as noxious as it's html it might end up being more work, I've never tried so I wouldn't know.

      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