dannyR

Word Programming Newbie here.

I've been browsing around trying to find a simple tutorial on how to read a Word 2007 document in VB.NET or C# and I can't seem to find any samples. Can anyone provide me a pointer

Specifically, I have a Word document template that people on my team use. The template includes a table that contains document status info. I'd like to be able to write a program to read the data in the table from all the documents in a directory and report on document status.

If anyone could give me a pointer to a sample that shows how to read data out of a Word 2007 doc I'd greatly appreciate it.

Thanks.



Re: Visual Studio Tools for Office Sample for reading a Word 2007 document with C# or VB.NET?

Cindy Meister

You're actually off-topic in this forum, as it's targeted to the VSTO technology, not towards general office questions. The "please read first" message at the top of this forum provides links to resources for that kind of thing. One of the office.developer newsgroups, for instance...

It's not clear whether you wish to automate Word, or access the closed document file. Usually, the latter is preferred. Assuming the file is saved in Word 2007 file format (XML), you can access the XML without opening the document in Word. You'll find information on working with the Office 2007 file formats at OpenXMLDeveloper.org






Re: Visual Studio Tools for Office Sample for reading a Word 2007 document with C# or VB.NET?

dannyR

I apologize for posting in the wrong forum. The "Please Read First" post wasn't at the very top and my aged, tired eyes missed it. But thanks for the pointer to OpenXMLDeveloper.org, Cindy--it looks like an interesting site.

Also, I found an MSDN article that helps with reading the XML in Word 2007 format: http://msdn2.microsoft.com/en-us/library/aa982683.aspx