Last post Dec 03, 2010 04:48 PM by Nilla2010
Dec 11, 2008 02:26 AMemail@example.com|LINK
I have got a requirement which states, "A button should be provided in a page and by clicking that button, print screen should happen and should save the picture in JPG format." I have written the below code.
It works fine in my system (development system). Once it is published in the server, it creats a file with 0 bytes. I searched many forums and almost all faced the same problem. No one has mentioned solution for this problem. Can any one please suggest me
the solution. Atleast let me know whether we could do this kind of requirement in Web development.
capture grab webpage server-side
drawing in asp.net
A generic error occurred in GDI+
Dec 16, 2008 10:29 PM|Nai-Dong Jin - MSFT|LINK
From your description, it seems that the above code does not work on your product server, right?
Have you checked your server operation system matches the system required to use CopyFromScreen method.
Besides, It needs the following permissions:
for access to all windows. Related enumeration: AllWindows.
Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2003, Windows
Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System
For more information, see:
Jan 15, 2009 05:20 AMfirstname.lastname@example.org|LINK
Thank you very much for your immediate response. My requirement is, from my web site i shuold send an email. To that email, screen shot of the client system must be attached. AS per my knowledge, web application will not have any control over
client system. So, my code is failing to get handle of client screen. I have achieved this in a different way. I created one dll using C#, where i created one method to capture screen. I have registered that dll using regasm command in the client system. In
my web page, using java script, i created object of that dll which i registered. I called the method of that object. Since registered object is residing in the client mechine, it does trick for me. It captured the screen and uploaded to the server. Till here
it is fine, if i register the dll manually in the clients system. There are two drawbacks of this solution.
1. I should register the dll in the clinet machine. It is difficult to go and register in every client machine.
2. To register C# dll, i need regasm command, which is present only in .net framework. So, i need to install .net framework too.
Can you suggest me any ways, how can i install .net framework from my web page in the client machine. And also how can i register the dll dynamically. I want both these tasks to be done without user clicks anything. He should only see on the web page that
some required software is installing in his system.
I have seen some web sites where if flash is required, it automatically detects flash is present or not. If flash is not present, installation automatically starts without user interaction. How to achive this if i want to install dot net framework in the
Dec 03, 2010 04:48 PM|Nilla2010|LINK
I am working on the same scenario as you and facing the same problem.Could be please share the solution you followed.