[python-win32] save chart from an existing xlsx as an image

2014-06-20 Thread Weijie Wu -X (weijwu - YI JIN XIN XI FU WU(SU ZHOU)YOU XIAN GONG SI at Cisco)
Hi, guys I know win32com is working on windows for python, and I've question: I want to save chart from demo.xlsx as an image. I also found some code as below: from win32com.client import Dispatch xlsApp = Dispatch(Excel.Application) xlsWB = xlsApp.Workbooks.Open(r'/tmp/test/demo.xlsx')

Re: [python-win32] save chart from an existing xlsx as an image

2014-06-20 Thread Vernon D. Cole
It might be possible to run some older versions of Excel on Linux using wine https://winehq.org/ or crossover https://codeweavers.com/products/, but I do not think that you will be able to control them using COM. Python 2.7 (32 bit) for Windows and pywin32 can be installed using Wine, but many

Re: [python-win32] save chart from an existing xlsx as an image

2014-06-20 Thread Christian Calderon
Are you trying to extract data from the file to make a graph? This is possible. On Jun 20, 2014 1:09 AM, Weijie Wu -X (weijwu - YI JIN XIN XI FU WU(SU ZHOU)YOU XIAN GONG SI at Cisco) wei...@cisco.com wrote: Hi, guys I know win32com is working on windows for python, and I’ve question: I

Re: [python-win32] save chart from an existing xlsx as an image

2014-06-20 Thread Tim Roberts
quote I know win32com is working on windows for python, and I’ve question: I want to save chart from demo.xlsx as an image. I also found some code as below: /quote Allow me to summarize the other responses. 1. Excel does not run on Linux. 2. It can be made to run in a Windows emulator, but you

[python-win32] win32ui.CreateFileDialog() hangs on Windows 7

2014-06-20 Thread Tony Cappellini
I'm running Python 2.7.6, PythonWin build 218 on Windows 7 Pro, 32-Bit The code below hangs after the browse() function returns to the caller. I do see After displayed in the console window. Is anyone else seeing this problem on Windows? Thanks import win32ui import os def