We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Support for cell borders on export to HTML

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.CellFormat.Width = 100;
builder.CellFormat.Borders.LineStyle = LineStyle.Single;
builder.CellFormat.Borders.LineWidth = 1;
builder.Writeln("Row 1, Cell 1");
doc.Save(@"385_104383_journeymansix\out.html", SaveFormat.Html);

Please let me know if you would like to ask something else.
Best regards.