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

Free Support Forum - aspose.com

Aspose 17.6.00 Support

we upgraded our Aspose from 9.6.0 to 17.6.0 version and we are facing an issue:

Earlier the Cell Margins the left and Right Cell margin’s were set to 0".

But after the update its taking .08". we are importing an table from Excel to Word.

The code we use to import eh padding property is

Aspose.Words.Tables.Row wordsRow = new Aspose.Words.Tables.Row(doc);

can you give a resolution to the problem or we shall set the value forcefully to 0" ?

@sumitbhagat,

Please use the latest versions of Aspose APIs. Also, you can use the following code for this purpose:

foreach(Table tbl in doc.GetChildNodes(NodeType.Table, true))
{
    foreach(Row row in tbl)
    {
        foreach(Cell cell in row)
        {
            cell.CellFormat.BottomPadding = 0;
            cell.CellFormat.LeftPadding = 0;
            cell.CellFormat.RightPadding = 0;
            cell.CellFormat.TopPadding = 0;
            //cell.CellFormat.SetPaddings(0, 0, 0, 0);
        }
    }
}

Please let us know if we can be of any further assistance.