How to run makepy process

2,612 views
Skip to first unread message

rahul

unread,
Apr 12, 2011, 10:23:38 AM4/12/11
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

John Machin

unread,
Apr 13, 2011, 6:35:39 PM4/13/11
to python...@googlegroups.com, rahul....@lntinfotech.com

It is not apparent what you really want to do.

Consider asking on the python-win32 mailing list  -- see here: http://mail.python.org/mailman/listinfo/python-win32
Reply all
Reply to author
Forward
0 new messages