473,789 Members | 2,419 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need Help ASAP!

Hey all,

I've spent all day trying to figure this out. What I need is a script to
grab a webpage and display it as an (thumbnail?) image on one of my pages.
GotDotNet has a webservice to do this, but I need everything to be "local",
i.e. I can't call their webservice. Does anyone know where I can find the
code to do this (I think I've seen it out there before, just can't find it
again). Any help would be tremendously appreciated!!!

Thanks to everyone,

Chad
Nov 18 '05
17 1187
"Chad A. Beckner" <Ch*********@Pr ospectiveLink.c om> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
I disagree, it IS an ASP .NET question... I want to create an image of a
remote webpage, and display it in my aspx file (not include an image "from" their page). I know this is possible, I've seen it out there, but there's
not very good documentation on how to do it. See this site for an example
of what I am trying to do:


Chad, if you ask the creators of the ActiveX control whose URL another
poster has supplied, I bet they'll tell you that their control either hosts
IE inside of it or else parses the HTML itself. Those are the only ways to
do it - somebody has to render the HTML into pixels.

It's also totally separate from ASP.NET, as the translation will be
happening entirely on the "client" side. If you happen to host the "client
side" on your server, that's up to you, but it's still a web client which
can render HTML (i.e., a browser).
--
John Saunders
johnwsaundersii i at hotmail
Nov 18 '05 #11
Hey John, hehe, we keep running into eachother! :-)

So, are you saying that there is no "server side" code to translate HTML
to an image file? I've seen many examples on the internet of how to do this
(see previous posts for an example), but I guess what I need now is to
figure out how I can translate the HTML to an image. I've got it connecting
and getting the page data, but have no idea of how to do it using .NET
(again, it may not be ASP .NET specific, but where to post from here??). As
always, thanks for your time and help! :-)

Chad
"John Saunders" <jo************ **@notcoldmail. com> wrote in message
news:eo******** ******@TK2MSFTN GP12.phx.gbl...
"Chad A. Beckner" <Ch*********@Pr ospectiveLink.c om> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
I disagree, it IS an ASP .NET question... I want to create an image of a remote webpage, and display it in my aspx file (not include an image "from"
their page). I know this is possible, I've seen it out there, but there's not very good documentation on how to do it. See this site for an example of what I am trying to do:


Chad, if you ask the creators of the ActiveX control whose URL another
poster has supplied, I bet they'll tell you that their control either

hosts IE inside of it or else parses the HTML itself. Those are the only ways to
do it - somebody has to render the HTML into pixels.

It's also totally separate from ASP.NET, as the translation will be
happening entirely on the "client" side. If you happen to host the "client
side" on your server, that's up to you, but it's still a web client which
can render HTML (i.e., a browser).
--
John Saunders
johnwsaundersii i at hotmail

Nov 18 '05 #12
"Chad Beckner" <Ch*********@Pr ospectiveLink.c om> wrote in message
news:uJ******** ******@TK2MSFTN GP12.phx.gbl...
Hey John, hehe, we keep running into eachother! :-)

So, are you saying that there is no "server side" code to translate HTML
to an image file? I've seen many examples on the internet of how to do this (see previous posts for an example), but I guess what I need now is to
figure out how I can translate the HTML to an image. I've got it connecting and getting the page data, but have no idea of how to do it using .NET
(again, it may not be ASP .NET specific, but where to post from here??). As always, thanks for your time and help! :-)


No, there is no server-side code for rendering HTML into an image. However,
since your server is also running Windows, you might be able to use a
client-side technique to do it. I know that it's possible to feed HTML to
the IE COM object (I seem to remember you have to do a navigate, then load
the HTML, something like that). There may then be some mechanism to get the
thing to render to a device context of your choice, perhaps one backed in
memory which you could subsequently read to get the image.

Frankly, if I were you, I'd either pay someone else to do this or reevaluate
the requirements. For instance, do you have to be able to get a thumbnail of
any random web page, or is it only some pages? Do you perhaps have control
over those pages? If so, then perhaps there's a way to get those pages to
generate both HTML and an image? Maybe those pages use only a subset of
HTML? Perhaps a subset which isn't that difficult to parse and render?

Good luck with this.
--
John Saunders
johnwsaundersii i at hotmail
Nov 18 '05 #13
"Chad A. Beckner" <Ch*********@Pr ospectiveLink.c om> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
I disagree, it IS an ASP .NET question... I want to create an image of a
remote webpage, and display it in my aspx file (not include an image "from" their page). I know this is possible, I've seen it out there, but there's
not very good documentation on how to do it. See this site for an example
of what I am trying to do:


Chad, if you ask the creators of the ActiveX control whose URL another
poster has supplied, I bet they'll tell you that their control either hosts
IE inside of it or else parses the HTML itself. Those are the only ways to
do it - somebody has to render the HTML into pixels.

It's also totally separate from ASP.NET, as the translation will be
happening entirely on the "client" side. If you happen to host the "client
side" on your server, that's up to you, but it's still a web client which
can render HTML (i.e., a browser).
--
John Saunders
johnwsaundersii i at hotmail
Nov 18 '05 #14
Hey John, hehe, we keep running into eachother! :-)

So, are you saying that there is no "server side" code to translate HTML
to an image file? I've seen many examples on the internet of how to do this
(see previous posts for an example), but I guess what I need now is to
figure out how I can translate the HTML to an image. I've got it connecting
and getting the page data, but have no idea of how to do it using .NET
(again, it may not be ASP .NET specific, but where to post from here??). As
always, thanks for your time and help! :-)

Chad
"John Saunders" <jo************ **@notcoldmail. com> wrote in message
news:eo******** ******@TK2MSFTN GP12.phx.gbl...
"Chad A. Beckner" <Ch*********@Pr ospectiveLink.c om> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
I disagree, it IS an ASP .NET question... I want to create an image of a remote webpage, and display it in my aspx file (not include an image "from"
their page). I know this is possible, I've seen it out there, but there's not very good documentation on how to do it. See this site for an example of what I am trying to do:


Chad, if you ask the creators of the ActiveX control whose URL another
poster has supplied, I bet they'll tell you that their control either

hosts IE inside of it or else parses the HTML itself. Those are the only ways to
do it - somebody has to render the HTML into pixels.

It's also totally separate from ASP.NET, as the translation will be
happening entirely on the "client" side. If you happen to host the "client
side" on your server, that's up to you, but it's still a web client which
can render HTML (i.e., a browser).
--
John Saunders
johnwsaundersii i at hotmail

Nov 18 '05 #15
"Chad Beckner" <Ch*********@Pr ospectiveLink.c om> wrote in message
news:uJ******** ******@TK2MSFTN GP12.phx.gbl...
Hey John, hehe, we keep running into eachother! :-)

So, are you saying that there is no "server side" code to translate HTML
to an image file? I've seen many examples on the internet of how to do this (see previous posts for an example), but I guess what I need now is to
figure out how I can translate the HTML to an image. I've got it connecting and getting the page data, but have no idea of how to do it using .NET
(again, it may not be ASP .NET specific, but where to post from here??). As always, thanks for your time and help! :-)


No, there is no server-side code for rendering HTML into an image. However,
since your server is also running Windows, you might be able to use a
client-side technique to do it. I know that it's possible to feed HTML to
the IE COM object (I seem to remember you have to do a navigate, then load
the HTML, something like that). There may then be some mechanism to get the
thing to render to a device context of your choice, perhaps one backed in
memory which you could subsequently read to get the image.

Frankly, if I were you, I'd either pay someone else to do this or reevaluate
the requirements. For instance, do you have to be able to get a thumbnail of
any random web page, or is it only some pages? Do you perhaps have control
over those pages? If so, then perhaps there's a way to get those pages to
generate both HTML and an image? Maybe those pages use only a subset of
HTML? Perhaps a subset which isn't that difficult to parse and render?

Good luck with this.
--
John Saunders
johnwsaundersii i at hotmail
Nov 18 '05 #16
Bob
Chad

Take a look at webgoo.com. They have a component that does what you want.

J

"Chad A. Beckner" <Ch*********@Pr ospectiveLink.c om> wrote in message
news:e5******** ******@tk2msftn gp13.phx.gbl...
Hey all,

I've spent all day trying to figure this out. What I need is a script to grab a webpage and display it as an (thumbnail?) image on one of my pages.
GotDotNet has a webservice to do this, but I need everything to be "local", i.e. I can't call their webservice. Does anyone know where I can find the
code to do this (I think I've seen it out there before, just can't find it
again). Any help would be tremendously appreciated!!!

Thanks to everyone,

Chad

Nov 18 '05 #17
On Fri, 25 Jun 2004 14:26:26 -0500 in
microsoft.publi c.dotnet.framew ork.aspnet, "Chad A. Beckner"
<Ch*********@Pr ospectiveLink.c om> wrote:
Hey all,

I've spent all day trying to figure this out. What I need is a script to
grab a webpage and display it as an (thumbnail?) image on one of my pages.
GotDotNet has a webservice to do this, but I need everything to be "local",
i.e. I can't call their webservice. Does anyone know where I can find the
code to do this (I think I've seen it out there before, just can't find it
again). Any help would be tremendously appreciated!!!


I'm guessing that such a screen scrape wouldn't be done on the fly for
efficiency reasons. Rather, you could develop a seperate MFC app that
visited a URL, rendered the contents using the WebBrowser control then
saved the viewport as a jpeg. Your web-app could then just link to the
resulting jpegs.

Roger

Nov 18 '05 #18

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2214
by: Philip D Heady | last post by:
I'm in need of a good PHP programmer to help me with my lodgings website asap. Someone who can work on it during the day for a few hrs while I'm at work would be great. Prefer they live in USA eastern standard time zone. Please send me your hourly rate, slill level, website references, and availability asap. Thank you. Philip D. Heady
1
1438
by: whisper | last post by:
Medium/small site with mod_python and sqllite or mySQL running Python 2.3.3 or later on Apache 2.x. I can do the python and CGI, but might need a _little_ hand holding for the rest. Will also need SSL and a certificate. Also mailboxes for ~12 people (to start). We don't do unsolicited mailings or expect a huge amount of mail traffic at this time.
2
2034
by: ratedr1 | last post by:
I am currently trying to label rings (jewelry). They make specialized tags (shaped like a butterfly, barbell, dumbell, etc) for this purpose, the label goes through the ring, and then the ends stick together. What I want to do is type information on these tags rather than write on them, the only problem that I am having is that there is NO template tht I can find anywhere for these labels. Now I have purchased the labels and I have them...
5
1299
by: Witless | last post by:
This is 'supposed' to be a simple problem and shouldn't need too much time to solve :S Below is a function that works like this: int fn(int input) { int x=(input/8);
2
1607
by: Chad A. Beckner | last post by:
Hey all, I have a ASP .NET webpage which contains several panels. When I click a button on the first "panel" page, it postsback to the same page, and I switch the visibility of the panels accordingly. BUT, when I click the back button, the same panel shows up, not the "previous" panel. I need to fix this ASAP! I have tried expiring the page, but then I seem to lose viewstate on the previous page (panel). How can I do this, I see a...
1
1655
by: Massimo Bonanni | last post by:
Hi, I try to implement ASAP protocol in my web service, but I find a very hard problem. I define my SOAP Header: public class Request : SoapHeader {
0
1059
by: SQLJunkie | last post by:
Please refer to the following URL for more info... http://jobsearch.monster.com/getjob.asp?JobID=37235298&AVSDM=2006%2D01%2D05+12%3A46%3A56&Logo=1&cn=verus&sort=rv&vw=b&BodyContent%3AibGetResults.x=32&BodyContent%3AibGetResults.y=8 We need someone ASAP!
4
1693
by: briggsie2006 | last post by:
I need to write a program called wc.py. It promts the user to input a filename and outputs the number of lines, words, and, characters in the file. I really need help on this because I don't know what to do. email me at briggsie2006@hotmail.com asap if you can help me out.
5
1536
by: Karthik D V | last post by:
Hello All, I have a table like this ID CHARACTER ----------- --------- 1 A 2 A 3 B 4 B
5
2208
by: byrnes | last post by:
We are looking to immediately recruit programmers for a project; we are interested in obtaining proposals ASAP. Will offer favorable compensation. We need immediately, an individual to complete the following project: take a DICOM medical image viewer from our existing code base, which is written in C# with some C++ from toolkits, and expand the functionality in a certain set of ways. We need this done and completed over the next couple...
0
9506
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10193
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9016
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7525
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6761
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5415
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5548
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3695
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2906
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.