Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Automating Word Tables
Message
De
13/04/2001 11:37:17
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00495304
Message ID:
00495311
Vues:
12
This message has been marked as a message which has helped to the initial question of the thread.
Hey Mark,

If you have multiple tables with the same layout and text, why not layout the first table in detail via automation and then get a Range object for it. The get a Copy of the Range. Select the part of the document where you want the duplicate table and use Paste. The copy will be the last Table in the Tables collection and you can use that reference along with the Cells collection to make changes to individual text values.


>I have a Word template that I am automating that has several tables. Creating and populating uniform tables is a breeze. Of course my problem is not that easy. I have several sections where each section has a NON-UNIFORM [e.g., some cells are split or merged] table and some text with variables below each table. The problem is each section can have a variable number of tables depending on the number of child records in a VFP table. The text that goes with each table also has to be repeated for each table.
>
>For example, if there are 3 child records, I now have to figure out how to replicate the table/text combination 2 times. Then replace the text variables independently because the values of the variables in the first table/text combo are not going to be the same values as the same variable names in subsequent table/text combos.
>
>What I am looking for is some brainstorming on how to best accomplish this. I am not necessarily looking for code, just ideas. TIA!
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform