Python的excel2img包不适用于MS office 2016

2024-06-02 08:10:16 发布

您现在位置:Python中文网/ 问答频道 /正文

使用excel2img包获取excel的scrrenshot。你知道吗

最近将MS office版本从2013年升级到2016年。你知道吗

Pyhton的包“excel2img”与MSoffice 2013一起使用,但观察到MSoffice版本2016中提到的错误,不确定问题。谢谢导游。谢谢! 你知道吗

导入excel2img

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

文件“C:\Python37\lib\site packages\excel2img\excel2仪表板“,第113行,在export\img中” 对于中的形状rng.parent.Shapes文件:通过 文件“C:\Python37\lib\site packages\win32com\client\uuu init\uuuuu.py”,第473行,在getattr raise AttributeError(“%s”对象没有属性“%s”(repr(self),attr)) AttributeError:“”对象没有属性“parent”


Tags: 文件对象版本img属性libpackagessite