I'm actually replying to my own post in hopes of generating a possible solution. Here is the code I have thus far...
Dim doc As mshtml.HTMLDocument = DirectCast(Me.AxWebBrowser1.Document, mshtml.HTMLDocument)
Dim bodyElement As mshtml.IHTMLElement
Dim render2 As IHTMLElementRender
bodyElement = doc.body
render2 = bodyElement
Dim BitMap As New Bitmap(600, 400)
Dim g As Graphics = Graphics.FromImage(BitMap)
Dim memDC As IntPtr
Dim CCBHandle As IntPtr
Dim memDC2 As mshtml._RemotableHandle
Dim tt As Integer
memDC = g.GetHdc()
Try
render2.DrawToDC(memDC)
Catch ex As Exception
MsgBox(ex.ToString)
End Try
Try
BitMap.FromHbitmap(memDC)
Catch exc As Exception
MsgBox(Err.Description)
MsgBox(exc.ToString)
End Try
BitMap.Save("c:\newread\test.tif", System.Drawing.Imaging.ImageFormat.Tiff)
MsgBox("Image created!")
I don't get an error on my DrawToDC() function, so I feel like I've rendered my HTML page to the Device Context in memory, but by golly I'm not entirely sure.
Does anyone have further insight in this matter; how to insert what I've rendered into a bitmap? Any thoughts would be helpful.
Thanks much
"Go back to the shadow. You shall not pass."