Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6SP5 and Word Automation using Word Templates
Message
 
À
28/02/2003 06:53:03
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00758576
Message ID:
00759826
Vues:
22
Thanks again Tamar. Could you post a simple VFP code eg. if it is not asking too much, this will avoid a lot of reinventing the wheel work on my side.

Appreciating your help.

>>Thanks Tamar. Another question how can I do placements in the template, say I have a table in a word document with 3 columns. I want to populate that table with 5 rows containing three fields from the current table? Next time I use this template I may have 10 rows 3 flds to populate.
>
>You can grab a table in a document using the Tables collection:
>
>oTable = oDocument.Tables[1]
>
>Then, you can put data in and do formatting as needed. Probably the key method you'll need is Rows.Add. I like to set up tables initially with 1 or 2 rows (depending on whether a header row is needed) and format those as I want them. Then, when I use Rows.Add, the newly added row takes on the formatting of the row above it.
>
>Tamar
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform