jx:image tag has a scale error. #208
-
When I using the jx:image tag like this-> ' jx:image(lastCell="xxx" src="xxx" scaleX="1.0" scaleY="1.0") ', threw a exception that message like this:### Then I continue checked source code of Jxls, found that when scaleX and scaleY is not null, the method named 'addImage' in PoiTransformer set Anchor's col2 and row2 value to -1.But in the HSSFClientAnchor.java of Apache'Poi, it will check col2 to make sure that col2 value not smaller than 0.That is a conflict with the 'addImage' method in PoiTransformer.java and caused exception like I said.So, somebody know how to fix that problem? Or maybe I was uesd this image tag with a incorrect way, please just tell me, I will appreciate that. |
Beta Was this translation helpful? Give feedback.
Answered by
SoltauFintel
Jun 30, 2022
Replies: 1 comment 4 replies
-
Looks to me like an Apache POI XLS bug that has to be reported by you at the POI community. I guess it will work if you use XLSX. XLS = HSSF = old format, XLSX = XSSF |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
SoltauFintel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks to me like an Apache POI XLS bug that has to be reported by you at the POI community.
I guess it will work if you use XLSX.
XLS = HSSF = old format, XLSX = XSSF