Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get a screenshot from an ASP.Net page

I have an ASP.Net page that has a button that when clicked I would like to take a screenshot of the user's PC and send it to a server.

I'm ok with writing some sort of listener program to run on the server to accept requests to receive these images. Where I'm a bit hazy is the best way to get the user's PC to send the screenshot. Would this need to be done by writing some sort of Active X control for the ASP.Net page? It needs to be cross browser and operating system if possible.

Just a point in the right direction and what technologies I should use would be great. I would rather write this functionality myself if possible than use an out of the box solution as I can see that this functionality may be extended in the future. How does something like WebEx or copilot manage this?

Thanks

Gavin

Edit : Just to make it clear I'm not trying to steal information from a users PC, They would have to allow this functionality, Its more from a support point of view so when a clients having issues they can send a screenshot of the page they are on.

like image 778
Gavin Avatar asked Mar 10 '09 08:03

Gavin


3 Answers

If it needs to be cross-browser and all, you should take a look at Java(applets). It may sound old fashion but I think it's your best option. ActiveX works on windows/IE only ;)

For starters, take a look at this question, which is quite similar: Is there a way to take a screenshot using Java and save it to some sort of image?

like image 67
Tuxified Avatar answered Nov 10 '22 12:11

Tuxified


ActiveX would work. I suspect you might be able to do something in Silverlight, Flash, or Java applet as well (which would be more cross-browser friendly).

As for copilot, it is running in a stand alone executable that the each user downloads and runs. So it's not confined to typical browser limitations.

like image 3
Greg Dean Avatar answered Nov 10 '22 14:11

Greg Dean


It is just the web page you want a snap shot of?

Then you can access the entire pages rendered html from the javascript document object and send it to a web service along with browser type etc. No ActiveX install required :-)

like image 1
TFD Avatar answered Nov 10 '22 13:11

TFD