简体   繁体   中英

How can I edit Excel Workbooks using XLRD or openpyxl while preserving charts?

I have a workbook that has some sheets in it. One of the sheets has charts in it. I need to use xlrd or openpyxl to edit another sheet, but, whenever I save the workbook, the charts are gone.

Any workaround to this? Is there another python package that preserves charts and formatting?

This is currently not possible with either but I hope to have it in openpyxl 2.x. Patches / pull requests always welcome! ;-)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM