Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Manually set the width of each column
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00986728
Message ID:
00986786
Views:
29
Borislav

Thanks for the help, that didn't quite work, but got me close enough to figure it out, here is the final code:
oTable=oWord.ActiveDocument.Tables.Add(oRange,2,9)

oTable.Columns(1).PreferredWidthType= 2  && wdPreferredWidthPercent
oTable.Columns(1).PreferredWidth=11
	
oTable.Columns(2).PreferredWidthType= 2  && wdPreferredWidthPercent
oTable.Columns(2).PreferredWidth=11

oTable.Columns(3).PreferredWidthType= 2  && wdPreferredWidthPercent
oTable.Columns(3).PreferredWidth=15

oTable.Columns(4).PreferredWidthType= 2  && wdPreferredWidthPercent
oTable.Columns(4).PreferredWidth=15
	
oTable.Columns(5).PreferredWidthType= 2  && wdPreferredWidthPercent
oTable.Columns(5).PreferredWidth=10
	
oTable.Columns(6).PreferredWidthType= 2  && wdPreferredWidthPercent
oTable.Columns(6).PreferredWidth=10

oTable.Columns(7).PreferredWidthType= 2  && wdPreferredWidthPercent
oTable.Columns(7).PreferredWidth=10

oTable.Columns(8).PreferredWidthType= 2  && wdPreferredWidthPercent
oTable.Columns(8).PreferredWidth=10

oTable.Columns(9).PreferredWidthType= 2  && wdPreferredWidthPercent
oTable.Columns(9).PreferredWidth=10
Previous
Reply
Map
View

Click here to load this message in the networking platform