I see that the latest release should fix a bug regarding exporting cell borders to HTML (#692). However it doesn’t seem to work. I’m attaching the output HTML. Note that I had to change the filename extension to XML in order to upload.
Thanks for your inquiry. This problem occurs because border width = 0. Try using the following code to solve this problem
Document doc = new Document(); DocumentBuilder builder = new DocumentBuilder(doc); builder.StartTable(); builder.CellFormat.Width = 100; builder.InsertCell(); builder.CellFormat.Borders.LineStyle = LineStyle.Single; builder.CellFormat.Borders.LineWidth = 1; builder.Writeln("Row 1, Cell 1"); builder.EndRow(); builder.EndTable(); doc.Save(@"385_104383_journeymansix\out.html", SaveFormat.Html);
Please let me know if you would like to ask something else.