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

wm_print in vb.net

P: n/a
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...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
Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.