Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Table --> Fox Pro code ?
Message
From
21/01/2003 11:52:51
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00740670
Message ID:
00743797
Views:
20
>Automating a Word document with a comples table, how would know how to identify the differnt data entry boxes? I mean Do the different text boxes, from the top of a document to the bottom, have a way of being referred to such as entry box #1, entry box #2, etc?

Steve,

You can use named bookmarks and enter data like:
loDoc.Bookmarks("MyBookmark").Range.Text = "Text I want to insert."
If you have a table you can use:
*!* loRange = loWord.ActiveDocument.Range
*!* loTable = loWord.ActiveDocument.Tables.Add(loRange, 6, 6)
loTable.Cell(5, 6).Range.InsertAfter("Text that goes in the box."
Tamar and Della's book "Microsoft Office Automation with Visual FoxPro" from www.hentzenwerke.com really helped me with this stuff.
Previous
Reply
Map
View

Click here to load this message in the networking platform