Python's excel2img package not working with MS office 2016

一个人想着一个人 提交于 2020-03-26 04:11:06

问题


Using excel2img package to take scrrenshot of excel.

Recently upgraded MS office version to 2016 from 2013.

Pyhton's package "excel2img" worked with MSoffice 2013 but observing mentioned error for MS Office version 2016,not sure about the issue.Kindly guide.Thanks!

import excel2img

excel2img.export_img("test.xlsx", "status.png", "Sheet1", None)

File "C:\Python37\lib\site-packages\excel2img\excel2img.py", line 113, in export_img for shape in rng.parent.Shapes: pass File "C:\Python37\lib\site-packages\win32com\client__init__.py", line 473, in getattr raise AttributeError("'%s' object has no attribute '%s'" % (repr(self), attr)) AttributeError: '' object has no attribute 'parent'


回答1:


@May0021 Even I was searching for the same, but looks like excel2img doesnot support 2016 as per the below data. Excel2img requirement



来源:https://stackoverflow.com/questions/57173575/pythons-excel2img-package-not-working-with-ms-office-2016

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!