Well, you could take Juan's advice, or find another ready-made component. I
did some research, and it is possible, but not easy or simple to do. It
would require some Interop. I found a COM Library
(C:\WINDOWS\System32\shdocvw.dll). The title of this library is "Microsoft
Internet Controls." It is the COM interface to Microsoft Internet Explorer.
It has several objects in it for browsing and displaying HTML documents, in
particular the "InternetExplorer" object, and the "WebBrowser" object.
A bit more research into the MSDN Library revealed that both of these
objects expose a HWND property, which is a handle to the window. I believe
the WebBrowser component is the one you want to use. You would use the
Navigate method to navigate the WebBrowser to the URL, and use the
System.Drawing.Graphics.FromHwnd() method to get a Graphics object from the
Window handle. From there it should be relatively easy to draw the contents
of the window in a bitmap, manipulate it, and display it in an ASP.Net page
as a thumbnail or what-have-you.
Again, as I haven't done this, there are no doubt a few surprises along the
way. But if you're brave, you can give it a try.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
I'd rather be a hammer than a nail.
"UJ" <fr**@nowhere.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
When I do the Google search, the first 50 or so all appear to be how to
get the html from a web page into a string. I need an actual image of the
resulting html not the code of it.
Thanks anyway.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:OJ**************@TK2MSFTNGP10.phx.gbl... Hi Clinton,
Google "screen scrape".
--
HTH,
Kevin Spencer
Microsoft MVP
.Net Developer
I'd rather be a hammer than a nail.
"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.com> wrote in
message news:ek*************@TK2MSFTNGP11.phx.gbl... I've been looking for a solution that can programmaticaly capture the
display of a page in a browser. So far I've come up with nada.
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
"UJ" <fr**@nowhere.com> wrote in message
news:uG**************@TK2MSFTNGP12.phx.gbl...
I've got some HTML that produces what I need. I need to make an image
of it to display on pages of my web site (I won't go in to why - just
trust me - I need the image of it). The user enters some stuff that can
include HTML code that I need to convert on the fly behind the scenes.
Is there any way to take HTML and produce an image of what it looks
like programmatically?
TIA - J.