One way:
Start by using "Microsoft Internet Controls" componenet. After you display
the page, use WebBrowser1.hWnd and BitBlt API function to copy the contents
to a PictureBox.
See these articles for samples that use BitBlt:
http://support.microsoft.com/default.aspx?scid=kb;en-us;147810
http://support.microsoft.com/default.aspx?scid=kb;en-us;161299
BitBlt requires hDC of the browser to work. Use GetDC(WebBrowser1.hWnd) API
function to get it. Don't forget to use ReleaseDC in the same routine when
you are done with it. Use error trapping and release it to prevent memory
leaks.
If the page is too long, I am not sure how you could scroll it by certain
number of pixels and take snapshots and attach them to each other. However,
at runtime, you could set the hight too long, longer than the form itself,
but I am not sure what the result would be.
As for the PictureBox, you could make it invisible and set AutoRedraw to
True, however, make it big enough to hold the entire image.
Good luck!
> Hi,
> Does anyone know how to retrieve a web page as an image (not get an
[quoted text clipped - 3 lines]
> I'm using VB6 or vbscript/asp.
> Thanks!