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. C#/OpenXML to manipulate Word files.

C#/OpenXML to manipulate Word files.

Scheduled Pinned Locked Moved C#
csharpwpfcomxmllearning
1 Posts 1 Posters 1 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.
  • W Offline
    W Offline
    Wolfram Steinke
    wrote on last edited by
    #1

    A breif outline of what I need to is generated a Word Document (2003 format) by appending a series on single (A5) Word Document templates files. 1. Load the Word template 2. Do a number of search/replace operation (driven by data from another file) 3. Insert at the end of the previous document 4. repeat till last file. Using word interop is dreadfully slow this and takes at least an hour for 20 pages. So I am considering converting the templates to XML and using OpenXML to do the above. The search/replace could then even be done by treating the XML file in plain text format. What I can't find is info on how I can then insert one XML file at a bookmark in the previous and of course still have a valid Word XML doco at the finish. Someone must have done something like this before. Thanking you in advance.

    Happy programming!!

    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