-
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.
"Dave Corporate Programmer"
gannet@cftnet.com
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks