Hi
I got to read a Word doc file and parse some of its contents. The pattern is almost (99%) similar for all files so using RegExp would do.
But what I would like to know is, how to read a doc file ?
Using : VB 2005 Exp Edition
Thanks
Printable View
Hi
I got to read a Word doc file and parse some of its contents. The pattern is almost (99%) similar for all files so using RegExp would do.
But what I would like to know is, how to read a doc file ?
Using : VB 2005 Exp Edition
Thanks
Add a reference to your solution. Look under the COM tab for Microsoft Word Object Library. You can use this COM class to read your DOC files.
Aah, here's an example:
http://www.vbdotnetheaven.com/Code/Jul2003/2123.asp
Ok - I added the Microsoft Word Object Library.
How come the above example doesnt have Imports Microsoft.Office.Interop ? Infact, Interop is not even used in the code sample.
Im using VB .NET 2005 Exp so I really would like to use the features of the 2005 edition.