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

Free Support Forum - aspose.com

Excel to HTML rendering - Landray RDM 148465 Convert Effect

words source code:
src.zip (4.8 KB)

origin doc:
origin xlsx.zip (1.3 MB)

converted error:

Caused by:java.lang.IllegalArgumentException: dash lengths all zero java.awt.BasicStroke.(BasicStroke.java:218) com.aspose.cells.b.a.b.zm.p(Unknown Source) com.aspose.cells.a.b.zbg.b(Unknown Source) com.aspose.cells.a.b.zq.a(Unknown Source) com.aspose.cells.a.b.zd.a(Unknown Source) com.aspose.cells.a.b.zc.a(Unknown Source) com.aspose.cells.a.b.zd.a(Unknown Source) com.aspose.cells.a.b.zc.a(Unknown Source) com.aspose.cells.a.b.zd.a(Unknown Source) com.aspose.cells.a.b.zc.a(Unknown Source) com.aspose.cells.a.b.zd.a(Unknown Source) com.aspose.cells.a.b.zp.a(Unknown Source) com.aspose.cells.a.b.zbg.a(Unknown Source) com.aspose.cells.a.b.zbg.a(Unknown Source) com.aspose.cells.a.b.zbg.a(Unknown Source) com.aspose.cells.zbj.n(Unknown Source) com.aspose.cells.zbxx.a(Unknown Source) com.aspose.cells.Shape.a(Unknown Source) com.aspose.cells.zakr.a(Unknown Source) com.aspose.cells.zakr.a(Unknown Source) com.aspose.cells.zakr.f(Unknown Source) com.aspose.cells.zakr.d(Unknown Source) com.aspose.cells.zakr.f(Unknown Source) com.aspose.cells.zakh.a(Unknown Source) com.aspose.cells.zakh.a(Unknown Source) com.aspose.cells.zakh.c(Unknown Source) com.aspose.cells.zakh.a(Unknown Source) com.aspose.cells.zakj.b(Unknown Source) com.aspose.cells.zakf.a(Unknown Source) com.aspose.cells.zakk.b(Unknown Source) com.aspose.cells.zakk.a(Unknown Source) com.aspose.cells.Workbook.a(Unknown Source) com.aspose.cells.Workbook.save(Unknown Source)

Please have a check.

@hucq_landray_com_cn

You have shared the source code for Aspose.Words for Java and attached Excel documents. Please use Aspose.Cells for Excel documents.

@hucq_landray_com_cn,

Moreover, seeing your error stack trace, it looks like you are using Aspose.Cells for Java. I also tested using your sample (attached) Excel file(s) with code segments you shared in other threads/posts (for Aspose.Cells for Java) and found the issue as you pointed out. But, it would be better if you could share your sample code (for Aspose.Cells for Java) that you are using, so we could log appropriate ticket(s) with your exact resource files.

cells source code:
src.zip (1.6 KB)

This one

@hucq_landray_com_cn,

Thanks for the original code snippet.

Please notice, we have evaluated your issue and found the issue as you described. We found an exception “java.lang.IllegalArgumentException: dash lengths all zero java.awt.BasicStroke…” in Excel to HTML rendering. We have logged a ticket with an id “CELLSJAVA-43787” for your issue. We will look into it soon.

Once we have an update on it, we will let you know.

@hucq_landray_com_cn
Hi,
I am glad to inform you that the issue with the ID CELLSJAVA-43787 has been resolved. The fix will be included in Aspose.Cells for java 21.10.
Please notice the team has prepared a hotfix, so you do not have to wait for the official release. Kindly test the project with the hotfix attached to this post and let us know about the results.
Best regards,
aspose-cells-21.9.2-java.zip (7.4 MB)

The issues you have found earlier (filed as CELLSJAVA-43787) have been fixed in this update.