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
_______________________________________________
python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32