[python-win32] Problem with python-win32

guillaume.dauguet at mpsa.com guillaume.dauguet at mpsa.com
Fri Aug 25 09:17:20 CEST 2006





Hi,

I'm an engineer from France and I use PythonWin very often. I Have one
question please : I'd like to run a function from a library included in the
"Tools=>COM Browser=>Registered Type Librairies" menu. This library is
called "Bibiothèque de pilotage de Scandiag" and I'd like to run from this
library the function called "Telechargement" from "ISScandiagOCX".
Just below is the source code in Visual basic just as an example so that
you can get more easily what I try to explain you :

Private Sub CommandButton1_Click()
Dim MonObjet As ScandiagOCX
Dim result As Integer
Set MonObjet = New ScandiagOCX
result = MonObjet.Telechargement("C:\Scandiag\Files\edc16.can", 1, 1, 1)
Set MonObjet = Nothing
End Sub
Actually, I'd like to do the same in python.

I tried already :

import win32com.client
ob = win32com.client.Dispatch("The.ProgID")
ob.Telechargement()

But actually, I don't know which arguments I need to use with the dispatch
command.
Therefore, what I want you to explain me please is how to determine the
"Prog ID". Is it a number, a string??


Thanks a lot in advance for your help,


Guillaume DAUGUET
PSA - La Garenne-Colombes
DPTA/DPMO/CCEE/MPVI/SVLG
Tél : (+33) 1.56.47.33.90
Fax : (+33) 1.56.47.30.74
E-mail : guillaume.dauguet at mpsa.com



More information about the Python-win32 mailing list