WPS表格中批量导出,示例代码
function testc(){
let a = Application.ActiveSheet.Pictures();
console.log( a.Item(1).Width);
a.Item(1).Copy();
let b = Application.ActiveSheet.ChartObjects().Add(0,0,a.Item(1).Width,a.Item(1).Height).Chart;
b.Paste();
b.Export("123.png","PNG") //b.Parent.Parent.SaveAs //123.png 保存在 安装路径下D:\ProgramData\Kingsoft\WPS Office\12.1.0.22477\office6
b.Parent.Delete();
}
创作者俱乐部成员