[python-win32] How to find a Type Library for makepy?
brendon wolff-piggott
mytekmail at gmail.com
Mon Aug 4 10:00:32 CEST 2008
brendon wolff-piggott wrote:
> >
>> I'm trying to automate using an Office component for character
> > recognition using python. I can see the type library from the VB
>> Express IDE I downloaded to get it working. When I run makepy on it
>> using:
>>
>> import win32com.client.makepy
>> win32com.client.makepy.ShowInfo("Microsoft Office Document Imaging
>> Viewer Control 12.0")
>>
>> I get:
>> Could not locate a type library matching 'Microsoft Office Document
>> Imaging Viewer Control 12.0'
Tim Roberts wrote:
> That's the friendly name of the control itself, not the name of the type
> library. In version 11, the type library name was "Microsoft Office
>Document Imaging 11.0 Type Library".
>The class name of the control is LMDocViewer.LMDocView, or at least it
>was in version 11, so you should be able to do
> vwr = win32com.client.Dispatch( 'LMDocViewer.LMDocView' )
Thanks Tim, I replaced your string with 'MODI.Document' from the
[VersionIndependentProgID] key, and it seems to be up and running! This
reference helped too:
http://coding.derkeiler.com/Archive/Python/comp.lang.python/2005-11/msg04306.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20080804/4dc98f61/attachment.htm>
More information about the python-win32
mailing list