Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automating Word Tables
Message
From
13/04/2001 11:37:17
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00495304
Message ID:
00495311
Views:
13
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform