Adamarla
Adamarla

Reputation: 812

WordML: Set Table Cell Width

How are cell widths set in WordML? I tried the w:w attribute of the w:tcW tag, but it has no effect. I want to set cell widths independantly of the column. I also want a different number of cells on each row.

Upvotes: 0

Views: 933

Answers (2)

RoadBump
RoadBump

Reputation: 751

The tcW element has one more optional attribute: w:type , that determines the measure of the width. The default seems to be auto. Try to set it to another measure, such as dxa,in, or pct.

Upvotes: 0

Kiru
Kiru

Reputation: 3565

I think you need to use <w:tblGrid> if you want to set the cell width irrespective of the column width check this

Upvotes: 1

Related Questions