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

Free Support Forum - aspose.com

Removing table border in dynamically created word document

Hello,

I am able to create a Word document and insert a table into it with text etc, but the table always has a border around it (and around every cell). I want to be able to remove this border, how do I do this?

I have tried:

builder.RowFormat.Borders.LineStyle = LineStyle.None;
builder.RowFormat.Borders.LineWidth = 0;
builder.CellFormat.Borders.LineStyle = LineStyle.None;
builder.CellFormat.Borders.LineWidth = 0;

I've tried that before and after creating the table.

Any ideas?

Thanks,
DaffMan

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. Table borders are disabled by default. You will not see these borders in print preview or when print document.

By default, MS Word shows disabled borders as single gray borders. You can disable this option in MS Word, just select “Hide Gridlines” from “Table” menu.

Best regards.