I want to save screenshot of the current page ( full page with scroll) and save it as an image or pdf .
Asked
Active
Viewed 3,146 times
-3
-
Please share the code you have tried yet. – Nagama Inamdar Feb 19 '15 at 10:54
-
1I haven't try any code for this , I want just simple screen shot of any web page in asp.net . – Abhinav Feb 19 '15 at 10:56
-
3*I haven't try any code for this* ok, I suggest you to go and code. Come with a specific problem with some code. Stackoverflow is not "Get me the code" kind of site. – Sriram Sakthivel Feb 19 '15 at 10:58
1 Answers
0
You can use html2canvas js library to take a screen shot and then use canvas in javascript to download/save.
HTML
<button id="save-img">Download</button>
JS/jQuery
$("#save-img").click(function () {
html2canvas(document.body, {
onrendered: function(canvas) {
document.location = canvas.toDataURL("image/png");
}
});
});
Or read this article if you want to achieve this in asp.net using DataVisualization.
Hope that helps.

yaloumi
- 198
- 1
- 9