I tried to use your example for converting my workbook to a word table.
By looking at the output file, I saw that line breaks haven’t been insert in the word table.
How can I solve this?
I attached the example that I used and a sample Excel document to convert.
Thanks,
Devid
Hi Devid,
Thanks for your inquiry. I have modified the ConverterXls2Doc class, please use the attached ConverterXls2Doc class to achieve your requirements. I have replaced the “\n” with line break as shown in following code snippet.
<span lang=“EN-GB” style=“font-size:
10.0pt;line-height:115%;font-family:“Courier New”;color:blue;mso-font-kerning:
0pt;mso-no-proof:yes”>string<span lang=“EN-GB” style=“font-size:10.0pt;
line-height:115%;font-family:“Courier New”;mso-font-kerning:0pt;mso-no-proof:
yes”> cellValue = cell.StringValue.Replace(“\n”,
ControlChar.LineBreak);
Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.
Hi Devid,
Thanks for your feedback. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.