By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,930 Members | 2,018 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,930 IT Pros & Developers. It's quick & easy.

'LoadFile' not found when invoking Acrobat via wx.lib.pdfwin

P: n/a
Hi,

I get the following traceback when trying to have
wx.lib.pdfwin.PDFWindow open a PDF file:

E:\Tutoring\Teacher\Flashcards>python pdfwin1.py
Traceback (most recent call last):
File "pdfwin1.py", line 50, in OnOpenButton
self.pdf.LoadFile(dlg.GetPath())
File
"C:\Python24\lib\site-packages\wx-2.6-msw-unicode-enthought\wx\lib\pdfwin
..py", line 34, in LoadFile
return self.CallAXMethod('LoadFile', fileName)
File
"C:\Python24\lib\site-packages\wx-2.6-msw-unicode-enthought\wx\activex.py
", line 385, in CallAXMethod
return self._CallAXMethod(name, args)
File
"C:\Python24\lib\site-packages\wx-2.6-msw-unicode-enthought\wx\activex.py
", line 378, in _CallAXMethod
return _activex.ActiveXWindow__CallAXMethod(*args)
KeyError: 'method <LoadFilenot found'

The code in pdfwin1.py is from
http://www.daniweb.com/code/snippet618.html

How could the ActiveX control PDFWindow possibly
*not* find the 'LoadFile' method, I wonder. - Or
am I misinterpreting the message?
(I am running Enthought Python 2.4 on Windows XP.)

Thank you in advance for any ideas as to what
the problem might be,

Christian

Jan 12 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.