Taking screenshot of a webpage programmatically [closed]
I searched and searched and searched and found it Webpage thumbnailer (a The Code Project article).
I searched and searched and searched and found it Webpage thumbnailer (a The Code Project article).
There is no way that you can stop a client machine from being able to print screen.
I hate the “it’s not possible” sentence. Here’s all solutions combined to help you: 1- You can grab the solution from Haluk: <script type=”text/javascript”> $(document).ready(function() { $(window).keyup(function(e){ if(e.keyCode == 44){ $(“body”).hide(); } }); }); </script> HOWEVER, you hide body, but’s already “printed” to clipboard. You can fire another event that copy some text to your … Read more
This answer improves upon prior answers by am05mhz and Javed Karim. It assumes headless mode, and that a window-size option was not initially set. Before calling this function, ensure the page has loaded fully or sufficiently. It attempts to set the width and height both to what is necessary. The screenshot of the entire page … Read more
I have done this for an HTA by using an ActiveX control. It was pretty easy to build the control in VB6 to take the screenshot. I had to use the keybd_event API call because SendKeys can’t do PrintScreen. Here’s the code for that: Declare Sub keybd_event Lib “user32” _ (ByVal bVk As Byte, ByVal … Read more