Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Table and Specify Position of right-most Column
Message
 
À
02/05/2005 08:39:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01009929
Message ID:
01012087
Vues:
34
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform