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

Free Support Forum - aspose.com

Word Table borders remove not working

builder.InsertCell();
builder.CellFormat.PreferredWidth = PreferredWidth.FromPercent(1.5);
builder.Writeln(“IMPORT CERT.DATE”);
builder.Font.Size = 10;

builder.InsertCell();
builder.CellFormat.PreferredWidth = PreferredWidth.FromPercent(0.85);
builder.Writeln(“VALUE”);
builder.Font.Size = 10;

builder.InsertCell();
builder.CellFormat.PreferredWidth = PreferredWidth.FromPercent(1.5);
builder.Writeln(“BE NO”);
builder.Font.Size = 10;

builder.InsertCell();
builder.CellFormat.PreferredWidth = PreferredWidth.FromPercent(1.25);
builder.Writeln(“BE DATE”);
builder.Font.Size = 10;

Hi there,

Thanks for your inquiry. Please use Table.ClearBorders method to remove all table and cell borders. Hope this helps you. Please check following code example for your kind reference.

Document doc = new Document();

DocumentBuilder builder = new DocumentBuilder(doc);

Table table = builder.StartTable();

builder.InsertCell();

builder.CellFormat.PreferredWidth = PreferredWidth.FromPercent(1.5);

builder.Writeln("IMPORT CERT.DATE");

builder.Font.Size = 10;

builder.InsertCell();

builder.CellFormat.PreferredWidth = PreferredWidth.FromPercent(0.85);

builder.Writeln("VALUE");

builder.Font.Size = 10;

builder.InsertCell();

builder.CellFormat.PreferredWidth = PreferredWidth.FromPercent(1.5);

builder.Writeln("BE NO");

builder.Font.Size = 10;

builder.InsertCell();

builder.CellFormat.PreferredWidth = PreferredWidth.FromPercent(1.25);

builder.Writeln("BE DATE");

builder.Font.Size = 10;

builder.EndRow();

table.ClearBorders();

doc.Save(MyDir + "Out.docx")