Connecting Tech Pros Worldwide Forums | Help | Site Map

screenshot

Aaron
Guest
 
Posts: n/a
#1: Jul 21 '05
can i use asp.net to capture a screen shot of a webpage? something like
this? http://img.nameintel.com/Thumbnails/...domain=cnn.com

Is there a script that does this?

Aaron



Lau Lei Cheong
Guest
 
Posts: n/a
#2: Jul 21 '05

re: screenshot


Rather than the screenshot, what you can do is to save the HTML code of the
remote web page.
Unless you have a built-in HTML renderer in your ASP.NET project, you can't
possibly get
the screenshot saved as image.

"Aaron" <kuya789@yahoo.com> 在郵件 news:ONPcxvnqEHA.896@TK2MSFTNGP12.phx.gbl
中撰寫...[color=blue]
> can i use asp.net to capture a screen shot of a webpage? something like
> this? http://img.nameintel.com/Thumbnails/...domain=cnn.com
>
> Is there a script that does this?
>
> Aaron
>
>[/color]


Nick Malik
Guest
 
Posts: n/a
#3: Jul 21 '05

re: screenshot


Lau Lei Cheung is right, Aaron. The image you showed is of a web page,
which means that you want a picture of a rendered page, as it appears to a
web client.
You would need to download all images from the web server, and the HTML, and
modify the HTML to get the images from your download cache, and then store
all of it together. IE does this when you save a page locally as an MHT.

Perhaps you can ask IE to do this for you, but I don't have any idea of how
to do that.

Good luck,
--- Nick

"Aaron" <kuya789@yahoo.com> wrote in message
news:ONPcxvnqEHA.896@TK2MSFTNGP12.phx.gbl...[color=blue]
> can i use asp.net to capture a screen shot of a webpage? something like
> this? http://img.nameintel.com/Thumbnails/...domain=cnn.com
>
> Is there a script that does this?
>
> Aaron
>
>[/color]


Scott M.
Guest
 
Posts: n/a
#4: Jul 21 '05

re: screenshot


Copying the HTML wouldn't get you the images used in the page though, you'd
need to save the referenced image files also.


"Lau Lei Cheong" <leu_lc@yehoo.com.hk> wrote in message
news:%23kAWLbpqEHA.1160@tk2msftngp13.phx.gbl...[color=blue]
> Rather than the screenshot, what you can do is to save the HTML code of
> the
> remote web page.
> Unless you have a built-in HTML renderer in your ASP.NET project, you
> can't
> possibly get
> the screenshot saved as image.
>
> "Aaron" <kuya789@yahoo.com> 在郵件
> news:ONPcxvnqEHA.896@TK2MSFTNGP12.phx.gbl
> 中撰寫...[color=green]
>> can i use asp.net to capture a screen shot of a webpage? something like
>> this? http://img.nameintel.com/Thumbnails/...domain=cnn.com
>>
>> Is there a script that does this?
>>
>> Aaron
>>
>>[/color]
>
>[/color]


Scott
Guest
 
Posts: n/a
#5: Jul 21 '05

re: screenshot


Scott M. wrote:
[color=blue]
> Copying the HTML wouldn't get you the images used in the page though,
> you'd need to save the referenced image files also.[/color]

See http://www.codeproject.com/vb/net/MhtBuilder.asp.

Scott C.
Closed Thread


Similar .NET Framework bytes