cell borders in DOCX

D

David Thielen

Please take a look at
http://www.windwardreports.com/temp/CellBorders.zip - the first cell.
In document.xml it has:

<w:body>
<w:tbl>
<w:tblPr>
<w:tblW w:w="10817" w:type="dxa"/>
<w:tblInd w:w="170" w:type="dxa"/>
<w:tblBorders>
<w:top w:val="single" w:sz="2"
w:space="0" w:color="auto"/>
<w:left w:val="single"
w:sz="2" w:space="0" w:color="auto"/>
<w:bottom w:val="single"
w:sz="2" w:space="0" w:color="auto"/>
<w:right w:val="single"
w:sz="2" w:space="0" w:color="auto"/>
</w:tblBorders>
<w:tblLook w:val="01E0"/>
</w:tblPr>
<w:tblGrid>
<w:gridCol w:w="5760"/>
<w:gridCol w:w="5057"/>
</w:tblGrid>
<w:tr w:rsidR="000827F7" w:rsidRPr="003E4DEB"
w:rsidTr="003C0D74">
<w:trPr>
<w:cantSplit/>
<w:trHeight w:val="537"/>
</w:trPr>
<w:tc>
<w:tcPr>
<w:tcW w:w="5760"
w:type="dxa"/>
<w:tcBorders>
<w:top
w:val="single" w:sz="2" w:space="0" w:color="auto"/>
<w:bottom
w:val="nil"/>
</w:tcBorders>

Should the right cell border be displayed as it is in tblBorders and
has no entry in tcBorders?

thanks - dave

david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

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

Colbert Zhou [MSFT]

Hi Dave,

I am researching on this and will report back as soon as possible! Have a
nice day :)


Best regards,
Ji Zhou
Microsoft Online Community Support
 
C

Colbert Zhou [MSFT]

Hi Dave,

I think the first cell's right border should not be displayed. The
tblBorders is used to control table's boder and tcBorders is for cell
border.

As we can see in the XML document,

The table's four borders all should be displayed.
The cell should only dispaly the top one because there are only top and
bottom in the tcBorders and the bottom's val is set to nil,
<w:tcBorders>
<w:top w:val="single" w:sz="2" w:space="0" w:color="auto"/>
<w:bottom w:val="nil"/>
</w:tcBorders>

Nil here should means that No Width, it specifies that the current width is
zero, regardless of any width value specified on the parent element.

Hope this helps!

Best regards,
Ji Zhou
Microsoft Online Community Support
 
D

David Thielen

Hi;

Ok, I think I understand. So...

The cell borders inside the table come from tblBorders/insideH and
tblBorders/insideV - correct?

But the right border of the right-most cell(s) comes from
tblBorders/right and the bottom border of the bottom cell(s) comes
from tblBorders/bottom - correct?

thanks - dave


Hi Dave,

I think the first cell's right border should not be displayed. The
tblBorders is used to control table's boder and tcBorders is for cell
border.

As we can see in the XML document,

The table's four borders all should be displayed.
The cell should only dispaly the top one because there are only top and
bottom in the tcBorders and the bottom's val is set to nil,
<w:tcBorders>
<w:top w:val="single" w:sz="2" w:space="0" w:color="auto"/>
<w:bottom w:val="nil"/>
</w:tcBorders>

Nil here should means that No Width, it specifies that the current width is
zero, regardless of any width value specified on the parent element.

Hope this helps!

Best regards,
Ji Zhou
Microsoft Online Community Support


david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

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

Colbert Zhou [MSFT]

Yes. You are correct. :)

Best regards,
Ji Zhou
Microsoft Online Community Support
 

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