Uipath 2020把任意图像或截图存到Excel表格中(invoke method)

直接上代码,代码由6部分组成。

1.Load Image或Take Screenshot,output是Uipath.Core.Image类型对象。//读取图片

2.Invoke method。

Target Type:System.Windows.Forms.Clipboard

MethodName:SetImage

Parameters:传入刚刚的image对象

//现在image对象已经存入剪切板了

3.Excel Application Scope //打开目标Excel,勾不勾选visible都可以

4.Select Range //选中目标worksheet和range

5.Send hotkey Ctrl+V //粗暴贴上图片

6.Send hotkey Ctrl+S //保存该Excel,否则Excel里图片将不会自动保存

猜你喜欢

转载自blog.csdn.net/weixin_31808811/article/details/107230470