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

Free Support Forum - aspose.com

Table AutoFit > Fixed Column width

Hi,

I am facing an issue while forming a table using the DocumentBuilder, Suppose is set width by using DocumentBuilder.CellFormat.Width as some fixed value and the text entered in it is much more than the size of the cell (for example "This_is_one_long_string_without_space") the cell size increases, instead i want the text to be overflowing to next line once the space in cell is consumed. In word document we could achieve this by "AutoFit > Fixed Column width" from the right click menu. Can some one please help me to find out how this can be achieved using aspose.

Thanks in advance

Harsha

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. You should just specify RowFormat.AllowAutoFit property to false:

builder.RowFormat.AllowAutoFit = false;

Best regards.