Hello, we have a purchased license.
We want to set zero padding for cell content, for example, here is zero padding between cell border and text:
Zero padding expected result.docx (7.4 KB)
We use following code to achieve this (simplified for demonstration):
var table = asposeBuilder.StartTable();
table.BottomPadding = 0;
table.LeftPadding = 0;
table.RightPadding = 0;
table.TopPadding = 0;
for (int i = 0; i < 5; i++)
{
for (int j = 0; j < 5; j++)
{
var cell = asposeBuilder.InsertCell();
cell.CellFormat.SetPaddings(0, 0, 0, 0);
cell.CellFormat.Borders.DistanceFromText = 0;
asposeBuilder.Write($"Cell {i} {j}");
}
asposeBuilder.EndRow();
}
asposeBuilder.EndTable();
But result is:
Zero padding actual result.docx (7.4 KB)