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