html2openxml icon indicating copy to clipboard operation
html2openxml copied to clipboard

TableGrid style is not working

Open dhavalgajera opened this issue 3 years ago • 1 comments

Steps to Reproduce:

  1. convert html file with simple table with border=1.
  2. open converted word and apply Table Design Style "TableGrid" and see the difference. Borders are coming as darker one with compared to TableGrid style. but, Default Table Design Style is "TableGrid", which is not getting applicable here.

dhavalgajera avatar Feb 11 '22 07:02 dhavalgajera

Possible fix can be this.

in ProcessTableRow function remove //properties.AddChild(new TableCellSpacing() { Type = TableWidthUnitValues.Dxa, Width = "0" });

ref: https://docs.microsoft.com/en-us/dotnet/api/documentformat.openxml.wordprocessing.tablecellspacing?view=openxml-2.8.1

dhavalgajera avatar Feb 11 '22 18:02 dhavalgajera