Openpyxl更新工作表并维护图形和图像 [英] Openpyxl updating sheet and maintaining graphs and images

查看:69
本文介绍了Openpyxl更新工作表并维护图形和图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚用openpyxl创建了一个脚本来更新xlsx文件,我们通常每个月手动更新一次.

I just created a script with openpyxl to update a xlsx file that we usually update manually every month.

它工作正常,但是新文件丢失了工作簿中的所有图形和图像.有办法留住他们吗?

It work fine, but the new file lost all the graphs and images that were in the workbook. Is there a way to keep them?

推荐答案

openpyxl 2.5版将在现有文件中保留图表.

openpyxl version 2.5 will preserve charts in existing files.

这篇关于Openpyxl更新工作表并维护图形和图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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