Click here to Skip to main content
15,037,420 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friends,
Please help me by explaining how to load an Active-X DLL in
a Python program and how to used its functions in my Python program.

1 solution

Install the "Python for windows extensions" here:[^]

And for example invoking excel will be possible:

import win32com.client
import pythoncom

xlApp = win32com.client.Dispatch("Excel.Application")

workBook = xlApp.Workbooks.Open(r"C:\MyTest.xls")
print str(workBook.ActiveSheet.Cells(i,1))
workBook.ActiveSheet.Cells(1, 1).Value = "hello"                

Here a link for invoking ADO:[^]

Good luck!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900