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
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 =