Re: question of easyExcel (<>)

2007-04-17 Thread Tim Golden
Tommy Zong wrote: > class easyExcel: [... snip ...] > However, I found a problem today - it works fine in single thread version > but can not work properly in multi-thread version - If I move excel file > operations to sub-thread, it will complain 'CoInitialize has not been > called'. I noticed

question of easyExcel (<>)

2007-04-16 Thread Tommy Zong
Hi, class easyExcel: def __init__(self, filename=None): self.xlApp = Dispatch('Excel.Application') if filename: self.filename = filename self.xlBook = self.xlApp.Workbooks.Open(filename) else: self.xlBook = self.xlApp.Workbooks.Add() self.filename =