Hi,
I’m struggling to apply expected formatting to my table, using Aspose.Words 21.5.0. Could you please advise?
I’m using the following code:
var doc = new Aspose.Words.Document();
var builder = new DocumentBuilder(doc);
var table = builder.StartTable();
builder.InsertCell();
builder.InsertCell();
builder.EndRow();
builder.InsertCell();
builder.InsertCell();
table.CellSpacing = 8;
table.SetShading(TextureIndex.TextureNone, Color.Red, Color.Red);
In the resulting document (Output.docx) the colour is applied only to the cells and not to the space between them.
In MS Word, when I set shading, both the cells and the space between them get the colour (Expected.docx).
Is there any way to mimic Word’s behaviour?
Thanks,
Michał
Expected.docx (11.5 KB)
Output.docx (7.2 KB)