1

Trying to apply a bottom border to a table row using <w:tblPrEx>, the bottom border is hidden by the next row, even if I give the next row a top border. If I delete the next row the bottom border is visible. Here is the document.xml:

<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"> <w:body> <w:tbl> <w:tblPr> <w:tblStyle w:val="AscTNormal"/> <w:tblW w:w="5000" w:type="pct"/> <w:tblCellMar> <w:top w:w="0" w:type="dxa"/> <w:start w:w="0" w:type="dxa"/> <w:bottom w:w="0" w:type="dxa"/> <w:end w:w="0" w:type="dxa"/> </w:tblCellMar> </w:tblPr> <w:tblGrid> <w:gridCol w:w="5000"/> </w:tblGrid> <w:tr> <w:tblPrEx> <w:tblBorders> <w:top w:val="single" w:sz="4"/> <w:bottom w:val="single" w:sz="4"/> </w:tblBorders> </w:tblPrEx> <w:tc> <w:p> <w:pPr> <w:pStyle w:val="AscPNormal"/> </w:pPr> <w:r> <w:t>Testing header</w:t> </w:r> </w:p> <w:p> <w:pPr> <w:pStyle w:val="AscPNormal"/> </w:pPr> </w:p> </w:tc> </w:tr> <w:tr> <w:tblPrEx> <w:tblBorders> <w:top w:val="single" w:sz="4"/> </w:tblBorders> </w:tblPrEx> <w:tc> <w:p> <w:pPr> <w:pStyle w:val="AscPNormal"/> </w:pPr> <w:r> <w:t>Testing data</w:t> </w:r> </w:p> <w:p> <w:pPr> <w:pStyle w:val="AscPNormal"/> </w:pPr> </w:p> </w:tc> </w:tr> </w:tbl> <w:sectPr> <w:pgSz w:w="12240" w:h="15840"/> <w:pgMar w:top="1440" w:right="1440" w:bottom="1440" w:left="1440"/> </w:sectPr> </w:body> </w:document> 

And the AscTNormal style:

<w:style w:type="table" w:styleId="TableNormal"> <w:name w:val="Normal Table"/> <w:uiPriority w:val="99"/> <w:tblPr> <w:tblInd w:w="0"/> <w:tcMar> <w:top w:w="0"/> <w:left w:w="108"/> <w:bottom w:w="0"/> <w:right w:w="108"/> </w:tcMar> </w:tblPr> </w:style> <w:style w:type="table" w:styleId="AscTNormal"> <w:name w:val="AscTNormal"/> <w:basedOn w:val="TableNormal"/> <w:tblPr/> </w:style> 

Well, the "AI" in all it's wisdom is not allowing me to submit this question because there is too much code. Gosh, AI is really going to rule the world one day?!? Anyways, hopefully this rambling will let me post the question.

The question is very simple, perhaps I should repeat it:

I am trying to apply a bottom border to a table row using <w:tblPrEx>, the bottom border is hidden by the next row, even if I give the next row a top border. If I delete the next row the bottom border is visible.

1 Answer 1

1

If you must use w:tblPrEx element, then use w:insideH border because you're specifying the whole table borders with it, not the table row borders.

In other words, use this:

<w:tbl> ... <w:tr> <w:tblPrEx> <w:tblBorders> <w:top w:val="single" w:sz="4" /> <w:insideH w:val="single" w:sz="4" /> </w:tblBorders> </w:tblPrEx> <w:tc>...</w:tc> </w:tr> <w:tr> <w:tblPrEx> <w:tblBorders> <w:bottom w:val="single" w:sz="4" /> </w:tblBorders> </w:tblPrEx> <w:tc>...</w:tc> </w:tr> </w:tbl> 
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks very much! Actually, by using insideH I don't have to add the border on the second row, which was a hack that didn't work anyways. Now I understand the practical meaning of insideH, thank you.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.