If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

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

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

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.

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