HI,
WHEN I SAVE AN EXCEL IN DOCX I LOSE THE LINEFEED.
ATTACHED EXAMPLE OF EXCEL SOURCE AND DOCX RESULT.
_DssRep_1734458728415.zip (325.8 KB)
Could you please try using latest version/fix: Aspose.Cells for Java v24.12. I tested your scenario/case using your template XLSM file to convert to DOCX by Aspose.Cells for Java v24.12 and the output looks OK. Please find attached the output DOCX file for your reference.
out1.docx (11.2 KB)
Sorry, but your docx have the same problem of LINEFEED, look at attached image, the second image is taken by excel.
IMG.jpg (210.0 KB)
Thanks for the screenshot.
I am able to reproduce the issue as you mentioned (via screenshot). I found line feed/line breaks lost when saving the Excel file to DOCX.
Workbook workbook = new Workbook("d:\\files\\Model56.xlsm");
workbook.save("d:\\files\\out1.docx",SaveFormat.DOCX);
We require thorough evaluation of the issue. We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): CELLSJAVA-46207
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
This is to inform you that your issue (Ticket ID: " CELLSJAVA-46207") has been resolved. The enhancement/fix will be included in the next release (Aspose.Cells v25.1) scheduled for release in early January 2025. We will notify you when the new version is available.
Thank you.
Regards
You are welcome. We will keep you posted with updates on the new release (once available).