vb .net search for text in a Word document

I need to find a way to use VB 2008 express to open a Word document and find a text string and report back the following string.  Following are the requirments.
1) The text string can be located in the Word body or in the header information, so the search needs to take place in both locations (I have a search that works for the body, but doesn't find info in the header)
2) I may search for "Exam Date:" and then I need to return the following date, so if the word document had Exam Date: 01/02/2009 then I should return 01/02/2009
3) For the code that I'm using that finds the string in the Body, I find that the program will crash if one of the word documents being looked at is already open.  I only need read only data, so I would like to find a way around this.
wardo123Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

 
wardo123Author Commented:
These exampes are for searching in the Word body, they won't find text that is in the Header in a Word Documet.  I already have a working search for Word that will search the body, I need a search that will look in the body and the Header information.

Thanks
0
 
wardo123Author Commented:
I found the solution using this page, in thier example they use the footer, but have comments on how to access the header as well.
http://www.dreamincode.net/forums/showtopic60975.htm
0

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.