rahul
unread,Apr 12, 2011, 10:23:38 AM4/12/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to python-excel, rahul....@lntinfotech.com
Hi,
I m new in Python Langauge
I have a module with following commands:
def new_report_file():
exl =
win32.gencache.EnsureDispatch('Excel.Application')
wb1 = exl.Workbooks.Add()
ws1 =
wb1.Worksheets("Sheet1")
when this i called in my scrips it give me following error:
Traceback (most recent call last):
File "C:\Python27\Lib\andrd_staf with main module.py", line 48, in
<module>
excel1.append1()
File "C:\Python27\Lib\excel1.py", line 41, in append1
exl = win32.gencache.EnsureDispatch('Excel.Application')
File "C:\Python27\lib\site-packages\win32com\client\gencache.py",
line 543, in EnsureDispatch
raise TypeError("This COM object can not automate the makepy
process - please run makepy manually for this object")
TypeError: This COM object can not automate the makepy process -
please run makepy manually for this object
......In line 48 i called that funtion new_report_file()
I want to automate the makepy process
Help me