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

Free Support Forum - aspose.com

Trouble during converting a workbook to a word table

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.

Moreover, I suggest you please use the latest version of Aspose.Cell and Aspose.Words.

<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 Tahir,


By using your suggestion I resolved the problem.
Thanks a lot for your help!

Devid.

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.