473,396 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Producing an image from HTML.

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
8 1241
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
1
by: Michael Allen | last post by:
Hi all you Java 2D gurus out there. I wonder if you might be able to help me. I've been dipping my toe into the world of Gaussian blurring and with the help of a few articles and some bashing my...
0
by: Andy Holyer | last post by:
We're producing a commercial intranet application using Mason, and we need to produce a room booking system, which needs displays by day, week, and month at-a-time. I've started on twiddling...
4
by: Helmut Giese | last post by:
Hello out there, this is OT but maybe some of you were in the past faced with the same problem: I have lots of sequences of GIF files to combine into animated GIFs. I can do it 'by hand' with...
4
by: Mike Owen | last post by:
Hi, I am just about to write a registration screen for a web based application. I have seen and used registration screens that show the user a graphic containing randon text that they are asked...
2
by: alfred.ayache | last post by:
I've found a problem with many of my PHP installations. I'm not sure whether it's a PHP problem, or an Apache problem, or something else again. The issue appears when we try to use the...
5
by: techjohnny | last post by:
I'm unable to get the CaptchaSecurityImages.php to show up on the page, and it's simply a broken image. Here is some infomation message from my phpinfo session: './configure'...
11
by: Evolution445 | last post by:
I got this code, and it somehow doesnt work. <TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center"> <TR> <TD background="{image-path}navfiller.gif" HEIGHT=40...
5
by: montybytes | last post by:
Hi there, Although, I have already placed this question in the HTML/CSS section, perhaps it might be worthwhile asking the question here as well. I have a JavaScript function which retrieves...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.