Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
在做报表引擎时用到了win32com来做excel,在python下调试好后放在OE模块里却报错,在网上查了下似乎是因为在多线程应用程序里调用com会出错,找到的解决方法为:在调用前加上pythoncom.CoInitialize(),告诉Windows以单线程的方式创建com对象。这样就会不会报错了。
原帖:http://www.cnblogs.com/yd1227/archive/2010/07/02/1770080.html
赞...... 很不错的经验.不过, OE 似乎不太喜欢 Windows Only 的东西....