安卓端webview 插入图片报错

Viewed 5

<img src="https://solution-community.wps.cn/uploads/post/59YHRkbgCCQ.png" alt="图片.png"/><img src="https://solution-community.wps.cn/uploads/post/59YHTiP7AHN.png" alt="c478887554909fc5366392c54223292.png"/><img src="https://solution-community.wps.cn/uploads/post/59YHTyDJpNY.png" alt="8cd89fe8df4acc509bb2482ffccd111.png"/>

4 Answers

您好,看下AddPicture的Range参数key少了start?正确写法应该是{start:1,end:2}

我传入了 还是报同样的错误

很抱歉,移动端的话暂不支持inlineShapes.AddPicture及shapes.AddPicture

现在有个需求,移动端需要用h5往word中插入图片 这个可以实现吗,如何实现呢

传入了 还是相同的错误

  await appz.ActiveDocument.Range(start, end).PasteHtml({HTML: "<img style="width: 50px;height: 20px;" src="https://minio.alphalong.cn:9000/gaoxin/2024-05/13/ccf73209-ce33-40f6-9a64-315037fbca81.png"/>"})

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

试了下PasteHtml({HTML:""})对宽高设置无效,不显示是另一个待解问题,移动端暂无其他插入图片方式了。