Export Charts from Excel as images using Python
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have been trying to export the charts from Excel as an image file (JPG or ING) in Python. I am looking at the WIn32com. Here is what I have till now. import win32com.client as win32 excel = win32.gencache.EnsureDispatch("Excel.Application") wb = excel.Workbooks.Open(" ") r = wb.Sheets(" ").Range("A1:J50") # Here A1:J50 is the area over which cart is r.CopyPicture() This is where I am stuck. I need to copy the selected range to a file now. Any help or pointers towards the doc can help me a lot. I have modelled the above code based on the