Can I read in a document?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Can I read in a document?

  1. #1
    Erica Guest

    Can I read in a document?


    Hi,
    Could someone please tell me if Visual Basic is the right language to use
    to code a program that will read in a Word document, process the information,
    and create a report from it? I have this project to do at work, and I am
    new to vb. Any help or suggestions would be greatly appreciated.
    Thank you
    Erica

  2. #2
    Mark Alexander Bertenshaw Guest

    Re: Can I read in a document?

    Erica -

    Absolutely yes!! But the trick isn't to not do the work yourself. Instead,
    you should "automate" Word to load in the file on your behalf, and then use
    the various methods of objects in the Word Application in order to grab the
    data and process it.

    Does this help?

    --
    Mark Alexander Bertenshaw
    Programmer/Analyst
    PrimeResponse
    Brentford
    UK
    "Erica" <ejvogel@usa.net> wrote in message news:39bd1135$1@news.devx.com...
    >
    > Hi,
    > Could someone please tell me if Visual Basic is the right language to use
    > to code a program that will read in a Word document, process the

    information,
    > and create a report from it? I have this project to do at work, and I am
    > new to vb. Any help or suggestions would be greatly appreciated.
    > Thank you
    > Erica




  3. #3
    Dave Corporate Programmer Guest

    Re: Can I read in a document?

    "Mark Alexander Bertenshaw" <mark.bertenshaw@virgin.net> wrote:

    >Erica -
    >
    >Absolutely yes!! But the trick isn't to not do the work yourself. Instead,
    >you should "automate" Word to load in the file on your behalf, and then use
    >the various methods of objects in the Word Application in order to grab the
    >data and process it.


    I'd go further than that and say that unless this needs to be a real
    "application", or has some other special requirement, I would just do
    it in Word VBA. Sure, you can drive Word via OLE, but unless you
    -need- to, why? It's usually easier to do it inside Word.

    To the original poster: if you haven't already, go into Word Help, and
    select the topic "Microsoft Word Visual Basic Reference" from the
    Contents tab. This will actually open up an entirely different Help
    file that is all about programming Word.

    "Dave Corporate Programmer"
    gannet@cftnet.com

  4. #4
    George Lissauer Guest

    Re: Can I read in a document?

    There is a good book on this subject - "Learning Word Programming".
    Read a review of it on the books page at http://www.gridlinx.com
    ....
    George
    GridLinx Software Programming Tools for VB Programmers

    Erica wrote in message <39bd1135$1@news.devx.com>...
    >
    >Hi,
    >Could someone please tell me if Visual Basic is the right language to use
    >to code a program that will read in a Word document, process the

    information,
    >and create a report from it? I have this project to do at work, and I am
    >new to vb. Any help or suggestions would be greatly appreciated.
    >Thank you
    >Erica




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center