Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Centering a Table in a Word Document
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00397780
Message ID:
00398008
Views:
17
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform