Huang Guan wrote:
> Thank you very much for your quick response.
> As brief view of PAMIE source code, PAMIE realization is a very special ideas.
> But it can only be used by Dispatch approaches, it does not use the
> method DispatchWithEvents;
> I can't load "Loading HTML content from a Stream" function. 
> Pls see the functional description:
> http://msdn2.microsoft.com/en-us/library/aa752047.aspx.


import win32com.client, pythoncom
class IE_Events: 
    def OnNavigateComplete2(self, pDisp, URL):
        print 'OnNavigateComplete2:', URL

ie=win32com.client.DispatchWithEvents('internetexplorer.application', IE_Events)
ie.Visible=1
ie.Navigate('about:blank')
p=ie.Document._oleobj_.QueryInterface(pythoncom.IID_IPersistStreamInit)
p.Load(<PyIStream that contains content>)
 
         Roger

_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to