c# - Unable to find Open XML word Table top border element -
i creating table in ms word table looks shown below .

i zip file , open document.xml , check border elements in table grid . how looks . checking border element top border element.

all border displayed none . check tablegrid in styles.xml file table borders below how tablegrid styles in styles.xml

the problem here not able find border element getting assigned. top black line in table ?
borders can defined @ table level via tablestyle (here w:tblborders in tablegrid style) or via tablesproperties (here w:tblborders in w:tblpr).
if both of them definied, there conflict , borders definied via tablesproperties win.
since w:tblborders in w:tblpr set none, there no borders.
but noticed topborder missing here (you have left, right, bottom insideh , insidev),
it's why, topborder, ms word using topborder definied in tablegrid style , set single.
so, remove top border, have :
- add topborder missing in
w:tblbordersinw:tblpr(and setnoneothers) - or set borders
nonein tablegrid style.
Comments
Post a Comment