-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
导入带图片的excel时,不支持导入绑定到单元格上的图片 #51
Comments
我也发现有这个问题 |
LuckySheet.ts / 行202加上如下代码 let oneCellAnchors = this.readXml.getElementsByTagName("xdr:oneCellAnchor", drawingFile);
|
@morrystore 你好,把以上代码复制到luckyexcel.js文件后,提示找不到LuckyExcel, |
场景描述:
使用
luckysheet
导入带图片的excel,没有任何问题。然后使用exceljs
导出excel,使用的是将图片绑定到单元格的方式,具体如下图所示:然后将导出的excel再次导入,发现图片丢失了。
经过分析
luckyexcel
的源码,原因应该是luckyexcel
不支持单元格上的图片导入,源码位置如下:以上代码只处理了插入到某个区间的图片(
tagName
为xdr:twoCellAnchor
),而没有处理绑定到单元格的图片(tagName
为xdr:oneCellAnchor
),请问这种情况应该如何解决比较好呢?
The text was updated successfully, but these errors were encountered: