Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Table and Specify Position of right-most Column
Message
 
To
02/05/2005 08:39:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01009929
Message ID:
01012087
Views:
33
I have been able to set the width of a table like this
With oWord
with oDocument
With oTable && set to oDocument.Tables[1]
.PreferredWidthType = 3 && wdPreferredWidthPoints
.PreferredWidth = 72*6

Using the same method, I can set the right-most column like this
in a 10 column table to 1 inch
oCol = oTable.Columns[10]
With oCol
.PreferredWidthType = 3 && wdPreferredWidthPoints
.PreferredWidth = 72*1

But I get an error message with some tables, when trying
to set the column width as above
"Word Cannot access individual columns in this collection because the table
has mixed cell widths .."

With these tables, I can still set the width of the overal table. However,

Is there a property that word has for tables that would be True or False,
based on whether or not the cells have mixed widths?

Thanks
Steve
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform