Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Centering a Table in a Word Document
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00397780
Message ID:
00398008
Vues:
14
Hi Paul,

oWord = CreateObject("Word.Application")
WITH oWord
.Documents.Add(wdNewBlankDocument) && Create new document
WITH .ActiveDocument
.Tables.Add(Range, NumRows, NumColumns, DefaultTableBehavior, AutoFitBehavior) && Add a table
.Tables(1).Select() && Select first table
.Tables(1).Rows.Alignment = wdAlignRowCenter && Center table
ENDWITH
ENDWITH
You can get the values of wdNewBlankDocument & wdAlignRowCenter here from files section. File is called Word2000h.ZIP

HTH

Boris
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform