c# - Unable to find Open XML word Table top border element -


i creating table in ms word table looks shown below .

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

  3. all border displayed none . check tablegrid in styles.xml file table borders below how tablegrid styles in styles.xml enter image description here

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:tblborders in w:tblpr (and set none others)
  • or set borders none in tablegrid style.

Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -