Re: Excel 2007 Charts with PyWin32

2008-10-14 Thread Ally
Solved. See http://bytes.com/forum/thread482449.html application = Dispatch("Excel.Application") should be application = win32com.client.gencache.EnsureDispatch('Excel.Application') -- http://mail.python.org/mailman/listinfo/python-list

Excel 2007 Charts with PyWin32

2008-10-14 Thread Ally
Hi all, I’m looking to plot charts in Excel from python. After some Googling I’ve found the following code: def plot(x, y, xAxisLog=False, yAxisLog=False): # acquire application object, which may start application application = Dispatch("Excel.Application") # create new file ('Workbo