怎么拿到Excel里面的单元格图片链接

阅读次数 1

<img src="https://solution-community.wps.cn/uploads/post/5vey155QQBj.png" alt="image.png"/>

像下面这个代码拿到的只有浮动图片,拿不到单元格里面的图片,有没有什么办法

// 获取浮动图片,只能获取到浮动的图片,复制进单元格的图片拿不到 const shapes = await sheet.Shapes // 当前图形的数量 const count = await shapes.Count
for(let i = 1; i <= count; i++) {
const imgUrl = await shapes.Item(i).ImageUrl
console.log('imgUrl--' + imgUrl)
}

0 Answers