RefreshPage from wx.lib.iewin.IEHtmlWindow raise A COMError

Hi,

I am using wx.lib.iewin.IEHtmlWindow to display PDF-Files. Everything works well but the method RefreshPage raise everytime the following Exception:

File “C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\lib\iewin.py”, line 168, in RefreshPage

return self.ctrl.Refresh2(Level)

COMError: (-2147467259, ‘Unbekannter Fehler’, (None, None, None, 0, None))

This is my Code:

class WizardPage(wx.Panel):

“”"

Creates the Wizard Page

“”"

···

#----------------------------------------------------------------------

def init(self, parent, PdfFile):

“”"

Constructor

:param parent: the parent window

:type parent: wx.Window

:param PdfFile: the PDF file that should be showed.

:type PdfFile: string

“”"

wx.Panel.init(self, parent, style=wx.TAB_TRAVERSAL|wx.BORDER_SUNKEN)

self.SetBackgroundColour(“black”)

sizer = wx.BoxSizer(wx.VERTICAL)

self.SetSizer(sizer)

self.__PdfPage = wx.lib.iewin.IEHtmlWindow(self, -1, style = wx.NO_FULL_REPAINT_ON_RESIZE )

self.__PdfPage.LoadUrl(PdfFile)

sizer.Add(self.__PdfPage, 1, wx.ALL|wx.EXPAND, 0)

self.__PdfPage.AddEventSink(self)

parent.Fit()

self.SetAutoLayout(True)

def DownloadComplete(self):

self.__PdfPage.RefreshPage(wx.lib.iewin.REFRESH_COMPLETELY)

Regards