Python的excel2img软件包不适用于MS Office 2016 [英] Python's excel2img package not working with MS office 2016

查看:641
本文介绍了Python的excel2img软件包不适用于MS Office 2016的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用excel2img软件包获取excel信息.

Using excel2img package to take scrrenshot of excel.

最近将MS Office版本从2013年升级到2016年.

Recently upgraded MS office version to 2016 from 2013.

Pyhton的软件包"excel2img"可与MSoffice 2013一起使用,但观察到提到的MS Office 2016版错误,不确定该问题.请提供指导.谢谢!

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!

导入excel2img

import excel2img

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

export_img中的文件"C:\ Python37 \ lib \ site-packages \ excel2img \ excel2img.py",第113行 用于rng.parent.Shapes中的形状:通过 getattr 中的文件"C:\ Python37 \ lib \ site-packages \ win32com \ client__init __.py",第473行 引发AttributeError('%s'对象没有属性'%s'"%(repr(self),attr)) AttributeError:''对象没有属性'父母'

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'

推荐答案

@ May0021甚至我也在搜索相同的内容,但根据以下数据,excel2img似乎不支持2016.

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

这篇关于Python的excel2img软件包不适用于MS Office 2016的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆