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

Producing an image from HTML.

P: n/a
UJ
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.
Nov 19 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
Not a trivial task.

There are couple ready solutions for that.
http://www.imgmaker.com/
George.

"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.
Nov 19 '05 #2

P: n/a
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.

Nov 19 '05 #3

P: n/a
Check out "HTML Snapshot" at

http://www.guangmingsoft.com/

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"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.


Nov 19 '05 #4

P: n/a
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.


Nov 19 '05 #5

P: n/a
UJ
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.



Nov 19 '05 #6

P: n/a
Did you check out "HTML Snapshot" at

http://www.guangmingsoft.com/

?

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"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.



Nov 19 '05 #7

P: n/a
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.



Nov 19 '05 #8

P: n/a
Hello - my earlier reply to "screen scrape" has not been posted. OE remnants
perhaps. Anyhow, I appreciate comments as I want to get something like this
topic discusses done some time in the near future. No time today though so
sorry to be so brief but I wanted to note I've tried to replier earlier...

<%= Clinton Gallagher

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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.
>
>



Nov 19 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.