excel学习库

excel表格_excel函数公式大全_execl从入门到精通

python库excel2img报错:object has no attribute 'parent'

用 python 库 excel2img 在excel 中 截 图 报 错:AttributeError: '<win32com.gen_py.Microsoft Excel 16.0 Object Library.Range instance at 0x2039866355584>' object has no attribute 'parent'. Did you mean: 'Parent'? 如下图所示:

object has no attribute 'parent'

遇到上述问题只需要打开excel2image.py文件,把“for shape in rng.parent.Shapes: pass”这句代码(大概在113行)里面的parent改成Parent即可。

excel2imag.py

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

«    2024年12月    »
1
2345678
9101112131415
16171819202122
23242526272829
3031
控制面板
您好,欢迎到访网站!
  查看权限
网站分类
搜索
最新留言
    文章归档
      友情链接