Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 10th, 2003, 10:03 PM
Registered User
 
Join Date: Jun 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Word automation in VB

I have a question about word automation in VB (VBA). I need to get a line number and page number of a specific word in a Microsoft word document. I have looked for functions that will return this information, but have been unable to find any. If anybody knows a function to do this, or has an alternate way, please reply.

Thanks
 
Old June 13th, 2003, 08:16 AM
Authorized User
 
Join Date: Jun 2003
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have done a lot of word automation with ASP.NET and also VB.NET but I have done it the other way around from taking the data and populating a word template.

I have also worked extensively with regular expression and I know you could do this with regular expression. What you would do is read the word document as a text string into the string reader and then use regular expression to find the value within that string that you need. If it is in the same position everytime it will be easy. But regular expression takes some time to understand.
I have seen a few good articals on 4guys.





Similar Threads
Thread Thread Starter Forum Replies Last Post
VB.Net Word Automation deboe Pro Visual Basic 2005 0 November 26th, 2007 09:57 PM
Word Automation TheNoobiest Beginning VB 6 1 November 9th, 2007 03:11 PM
word templates automation narendrapawar Classic ASP Basics 3 September 20th, 2006 04:11 AM
Word Automation in XP bmains ASP.NET 1.0 and 1.1 Professional 0 July 21st, 2004 09:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.