Q

Reading a Word document line-by-line

I would like to ask about one of your articles:
http://searchwebservices.techtarget.com/vsnetATEAnswers/0%2C293820%2Csid8_gci932830_tax293672%2C00.html

I too have the same problem, but I didn't get your concept or idea. Could you please elaborate a little? I will appreciate if you could direct me to a working example, code or whatever.
The idea is that whenever you need to open Word, you use the automation objects it exposes (COM objects). You can simply reference the Word library from the Add References dialog for your project. There's a lot of material on the Internet on how to use these objects. The example I gave is a working example on how to achieve a solution to the problem. Do you have any problems getting it to run?

Another approach is to save Word documents (2003 version) as XML files. This means you can open and query the document using XmlDocument/XPathDocument very easily. You can also convert such XML into HTML using an XSLT transformation (see here for more information).
This was first published in November 2004

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchCloudComputing

SearchSoftwareQuality

SearchSOA

TheServerSide

SearchCloudApplications

Close