Results 1 to 4 of 4

Thread: Reading a Word Document

  1. #1

    Thread Starter
    Lively Member anjanesh's Avatar
    Join Date
    Nov 2002
    Location
    Nerul, Navi Mumbai, India
    Posts
    68

    Reading a Word Document

    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
    Trying out VB .NET 2005 Express

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Reading a Word Document

    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.

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Reading a Word Document


  4. #4

    Thread Starter
    Lively Member anjanesh's Avatar
    Join Date
    Nov 2002
    Location
    Nerul, Navi Mumbai, India
    Posts
    68

    Re: Reading a Word Document

    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.
    Trying out VB .NET 2005 Express

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width