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

Free Support Forum - aspose.com

Table cells with mulit-line text

Is it possible to set a table cell some text that contains new line characters and have the cell display with text wrapping around the new line characters?

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

Thanks for considering Aspose.

I am sorry to inform you that text wrapping around using new line characters is not supported in table cell. As a way around you can set value for Table.ColumnWidths = "70 2cm"; in this case when the text reaches to the width of the table it will be wrapped automatically. I will also consult with other developers and will try to find solution to this problem. Sorry for inconvenience.
For information purpose you may consult Set Width and Span of the Column & Table Class

Hello Damien,

Thanks for your patience. I have dicussed with developers and found that Call can contain text with new line characters. Either of these two can be used for text wrapping #$NL or \r\n.

If we use "This is the first #$NL line and from here \r\n Third line starts" it will be displayed as

This is the first
line and from here
Thrid line starts