Hi,
Thanks for your inquiry.
I tested your case with
Spire.Doc Pack(hot fix) Version:7.11.1 and got the same result as you mentioned. Below is my code.
- Code: Select all
Document doc = new Document();
Section sec = doc.AddSection();
Paragraph pra = sec.AddParagraph();
pra.AppendText("testssssssssssssssss ttttttttttttttttttttttttttttttttt ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt acgdshfdgahldgbfjbfblfhdhjbjfdgufgdsnfdsnlfhalsuhfdsbjbdufhdiuhbjdfualhd jhiufbgfbidndjduhfdshfljkdhfls");
doc.SaveToFile("result.docx", FileFormat.Doc);
Kindly note that in MS Word, the word-wrap occurs when the page width is not wide enough to place your long string in one line. And in general, the whole word will be placed in one line. If you try to input a long string(more than two lines and contains a space) in MS Word manually, there will be a word-wrap after the space. We follows the rules of MS Word. I'm afraid we couldn't change the word-wrap rule of MS Word. Hope you could understand.
If I misunderstand, please offer us the following information for further investigation.
1. Your input Word file(if any).
2. Your input long string.
3. The complete code you were using which could reproduce your issue directly.
4. Your desired result file.
You could upload them here or send us(
support@e-iceblue.com) via email.
Best wishes,
Amber
E-iceblue support team