CellFormat.Width RowFormat.AllowAutoFit Issue


I'm unable to get the autofitting of cell widths to work. After generating my document and opening it in word I notice that the columns/cells all have a preferred width of 1". I am not setting this in my code. Any ideas what's happening?



Aspose.Word cannot autofit columns at the moment. 1" is the default width set by Aspose.Word. Even if you set AutoFit property to true using Aspose.Word, the explicit width has to be stored in a Word file and apparently MS Word uses that explicit width when it opens the file.

We might support autofitting columns, but this is not for the immediate future.