Free Support Forum - aspose.com

CellFormat WrapText not working for long word like Email

((DocumentBuilder)builder).CellFormat.WrapText = true;

we are facing an issue regarding with table cell text wrapping for continues word without space.
(eg.) Email format.

please find the attachment below.
Email Text Wrap Issue (2.8 KB)

thank’s in advance.

@balajiibcdigital,

Thanks for your inquiry. Please use CompatibilityOptions.GrowAutofit property as shown below to get the desired output. Hope this helps you.

doc.CompatibilityOptions.GrowAutofit = false;
doc.Save(MyDir + "out.docx");

If you still face problem, please attach the following resources here for testing:

  • Your input Word document.
  • Please attach the output Word file that shows the undesired behavior.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.