Word 2003 not displaying correctly

D

David Thielen

Hi;

The file http://www.windwardreports.com/temp/table.xml is a Word 2003 WordML
file. If you look at cell 0,3 ("Tanya") Word says it is 0.96" wide. And it
has the setting
<w:tcPr>
<w:tcW w:w="1386" w:type="dxa"/>
</w:tcPr>

Which overrides the setting:
<w:tblGrid>
<w:gridCol w:w="2346"/>
<w:gridCol w:w="2346"/>
<w:gridCol w:w="2214"/>
<w:gridCol w:w="2046"/>
</w:tblGrid>

But if you look at how Word actually draws it, or at how it prints it, it is
using the w:gridCol width. What is going on?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
D

David Thielen

Hi;

So is w:tcW the width after the indents are applied? Because the way the
docs describe it, the gridCol is where all the columns fall to include every
column in every row. And tcW was then the width of however many columns each
cell used up.

But reading the docs I assumed adding all the tcW widths in a row would
equal all the gridCol widths in a row.

So if I have a table like this

| cell 0, 0 is very long | cell 0, 1 |
| cell 1, 0 | cell 1, 1, is very long |

Won't gridCol have 3 columns - so how do I determine the size of each cell
if the paragraphs in the cell are indented?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
J

Jialiang Ge [MSFT]

Hello Dave,

Sorry for my delayed response.
So is w:tcW the width after the indents are applied? Because the way
the docs describe it, the gridCol is where all the columns fall to include
every column in every row. And tcW was then the width of however
many columns each cell used up.
Yes, w:tcW is the width after the indents are applied.
So if I have a table like this
| cell 0, 0 is very long | cell 0, 1 |
| cell 1, 0 | cell 1, 1, is very long |
Won't gridCol have 3 columns - so how do I determine the size of each
cell if the paragraphs in the cell are indented?

I did a test with a table like:
| aaaa | bbbb |
| cccc | dddd |
The first two cells in the first row are merged and the last two in the
second row are also merged.

The following is the xml format for the table:
It has three columns defined in w:tblGrid.
<w:gridSpan w:val="2"/> specifies the merge operation.
The size of each cell is still defined in w:tcW w:w. The value equals the
width of merged cells after indention is applied. Therefore, if I
understand your question correctly, we could directly use w:tcW w:w as the
size of each cell. The size of each column could be retrieved from
w:gridCol w:w value.
<w:tbl>
<w:tblPr><w:tblStyle w:val="TableGrid"/><w:tblW w:w="8568"
w:type="dxa"/><w:tblLook w:val="01E0"/></w:tblPr>

<w:tblGrid> // three columns are defined
<w:gridCol w:w="2840"/>
<w:gridCol w:w="2841"/>
<w:gridCol w:w="2887"/>
</w:tblGrid>

<w:tr wsp:rsidR="000924AA" wsp:rsidTr="000924AA"> // here is the first row
<w:tc>
<w:tcPr><w:tcW w:w="5681" w:type="dxa"/>
<w:gridSpan w:val="2"/>
</w:tcPr><w:p wsp:rsidR="000924AA" wsp:rsidRDefault="000924AA"
wsp:rsidP="000924AA">
<w:pPr><w:ind w:left-chars="342" w:right-chars="202"/>
<w:rPr><w:rFonts w:hint="fareast"/>
</w:rPr></w:pPr><w:r><w:rPr><w:rFonts w:hint="fareast"/></w:rPr>
<w:t>aaaa</w:t>
</w:r></w:p></w:tc>
<w:tc>
<w:tcPr><w:tcW w:w="2887" w:type="dxa"/>
</w:tcPr><w:p wsp:rsidR="000924AA" wsp:rsidRDefault="000924AA"
wsp:rsidP="000924AA">
<w:pPr><w:ind w:left-chars="294" w:right-chars="205"/>
<w:rPr><w:rFonts w:hint="fareast"/>
</w:rPr></w:pPr><w:r><w:rPr><w:rFonts w:hint="fareast"/></w:rPr>
<w:t>bbbb</w:t>
</w:r></w:p></w:tc>
</w:tr>

<w:tr wsp:rsidR="000924AA" wsp:rsidTr="000924AA"> // here is the second
row
<w:tc>
<w:tcPr><w:tcW w:w="2840" w:type="dxa"/>
</w:tcPr>
<w:p wsp:rsidR="000924AA" wsp:rsidRDefault="000924AA"
wsp:rsidP="000924AA">
<w:pPr><w:ind w:left-chars="342" w:right-chars="135"/>
<w:rPr><w:rFonts w:hint="fareast"/>
</w:rPr></w:pPr><w:r><w:rPr><w:rFonts w:hint="fareast"/></w:rPr>
<w:t>cccc</w:t>
</w:r></w:p></w:tc>
<w:tc>
<w:tcPr><w:tcW w:w="5728" w:type="dxa"/>
<w:gridSpan w:val="2"/>
</w:tcPr><w:p wsp:rsidR="000924AA" wsp:rsidRDefault="000924AA"
wsp:rsidP="000924AA">
<w:pPr><w:ind w:left-chars="361" w:right-chars="205"/>
<w:rPr><w:rFonts w:hint="fareast"/>
</w:rPr></w:pPr><w:r><w:rPr><w:rFonts w:hint="fareast"/></w:rPr>
<w:t>dddd</w:t>
</w:r></w:p></w:tc>
</w:tr>
</w:tbl>

If you have any other concern or need anything else, please feel free to
let me know.

Sincerely,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
When responding to posts, please "Reply to Group" via your newsreader
so that others may learn and benefit from your issue.
=================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
J

Jialiang Ge [MSFT]

Hi Dave,

If you need further assistance, feel free to let me know. I will be more
than happy to be of assistance.

Have a great day!

Sincerely,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
When responding to posts, please "Reply to Group" via your newsreader
so that others may learn and benefit from your issue.
=================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top