Openpyxl updating sheet and maintaining graphs and images

后端 未结 2 1798
无人及你
无人及你 2021-01-19 09:45

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 image

相关标签:
2条回答
  • 2021-01-19 10:27

    Use xlwings instead, it works as a wrapper on pywin32 and can preserve the existing Excel graphs, pivot-tables, etc.

    0 讨论(0)
  • 2021-01-19 10:30

    openpyxl version 2.5 will preserve charts in existing files.

    0 讨论(0)
提交回复
热议问题