Tom said:
On Nov 28, 2:10 pm, Peter Bromberg [C# MVP]
You have two choices:
1) use the Word Object model by setting a COM tab reference to the
appropriate version of Word.
2)Since docx files are XML, parse the Xml with the Office Xml APIs:
Docx files are not xml. They are zip files that contain the xml
files. To open them and manipulate their contents, the OP will want
to look at the System.IO.Packaging namepsace from .NET 3.0 and above.
On older .NET versions it should be possible to use #ZipLib to
get a Stream and use that by XmlDocument Load.
Arne
Sure - it should definately be possible. If you change the name of a
docx file to name.zip, you can actually open it with windows explorer,
just like a normal zip archive.