Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table in word
Message
De
05/01/2015 13:23:23
 
 
À
05/01/2015 09:38:35
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP3
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01613070
Message ID:
01613088
Vues:
59
>hi, how are you, I need your help please need to insert a table in Word with automation
>in a specific product until the insert but always on the first page now, thanks

You need to create a range variable for the location where you want the table and pass that as the first parameter to the Tables.Add method. If you always want to put the table in the same place in a standard document or template, one easy way to do it is to set up a bookmark for the location to place the table when you create the standard document/template. Then at runtime, you can do something like:
* Assumes oDoc is an object reference to the document
* and that the name of the bookmark for the table is "PutTableHere"
oTableRange = oDoc.Bookmarks["PutTableHere"]
oDoc.Tables.Add(m.oTableRange, ...) && fill in rest of params as needed
Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform