Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Table --> Fox Pro code ?
Message
De
21/01/2003 11:52:51
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00740670
Message ID:
00743797
Vues:
21
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform