I am trying to build a little application that uses mshtml to load an html
page and creates an image out of it. I was looking on line and I saw some
examples of using C#. They were suggesting using wm_print and wm_paint,
however I cannot figure out how to make this work in VB.net
I found the following areticle on support.microsoft.com
http://support.microsoft.com/default...b;en-us;230502
However it is for VB6, and cannot figure out how to make it work for vb.net.
Any suggestions?
My current code for loading the HTML page using mshtml is:
Dim objMSHTML As New mshtml.HTMLDocument()
Dim objDocument As mshtml.IHTMLDocument2
Dim ips As IPersistStreamInit
ips = DirectCast(objMSHTML, IPersistStreamInit)
ips.InitNew()
objDocument = objMSHTML.createDocumentFromUrl("http://www.google.com",
vbNullString)
Do Until objDocument.readyState = "complete"
Application.DoEvents()
Loop
thanks