wm_print in vb.net

D

ddd

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.aspx?scid=kb;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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top