How To Capture A Screen Shot From A Webapplication
May 26, 2010
In Java we can do it as follows:
import java.awt.Dimension;
import java.awt.Rectangle;
import java.awt.Robot;
import java.awt.Toolkit;
import java.awt.image.BufferedImage;
import javax.imageio.ImageIO;
import java.io.File;
...
public void captureScreen(String fileName) throws Exception {
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Rectangle screenRectangle = new Rectangle(screenSize);
Robot robot = new Robot();
BufferedImage image = robot.createScreenCapture(screenRectangle);
ImageIO.write(image, "png", new File(fileName));
}
How do we do this in .NET from a webapplication? Capturing the client's screen and sending it to the server all from within the application.
View 4 Replies
Similar Messages:
Apr 21, 2010
I'm building a cms and I want users to be able to upload videos but I'm not familiar with video upload & conversion. Is there an example or has anybody coded a solution like this? I heard about ffmpeg but I don't know how to integrate it with asp.net.
As simple solution I can make my clients upload flv files but then I would still need to get a screenshot from that fvl.
View 2 Replies
Mar 14, 2011
I'm trying to take screen shots of web pages programmatically. I may also require to take screen shots of full or partial page. Is there a way to do this?
View 5 Replies
Mar 17, 2010
Is it possible to take a screen capture of a particular area of a web-page from the web-page's own ASP.NET code?
I need to display 6 images that are stacked on top of one another using CSS, and I'd like to offer the user the ability to right-click save-as if possible by stacking the screen capture on top top of the original image stack.
View 3 Replies
Aug 4, 2010
I just want to know how to capture an image using asp.net server side.
My code runs smoothly and captures the image when I'm running it in localhost, but when if I published or deployed it in our web server then access it tru its url, it doesn't work or i can't capture the image.
Here's my code:
[Code]....
View 1 Replies
Jun 17, 2010
I have an ASP.NET Web Forms Application in migration process to ASP.NET MVC 1. Urls are as follows:
[URL]
(hxxp because stackoverflow thinks they are links and prevents me from posting so many)
"mvc" is another application inside my Web Site in IIS7.
I now need to be able to do this:
[URL]
Where 'subsiteName' can be anything and must be checked in runtime. I can't create directories for each subsiteName.
I thought of UrlRewriting, so /subsiteName/* rewrites to /*, but then I'd have to rewrite from WebForms to MVC.
I can't imagine a way to make a request to [URL]ever be taken by the MVC application in this scenario.
View 1 Replies
May 28, 2010
I am designing SAAS based application on .net MVC 2 platform. Left menu panel, header and footer are common for all pages. I want to avoid loading of these items on every single page. IN a sense I want to use AJAX at application level by refreshing content area ONLY on every click of menu item.
My question:
1)Will this be accomplised by having controls of all virtual web pages on one page and then control their hide and show behaviour depending on menu click? Is there any other better way?
2)What happens when we launch the app? Will it try to load all controls in one shot and hide it in backgrund? OR will it load controls of default page and then fetch what ever is requested via AJAX?
View 3 Replies
Feb 17, 2010
I wanted to maintain the great features of ASP security control but i couldn't find a way to fit my purposes. I wanted to add in multiple user in one shot instead of one by one, So far using CreateUserWizard control only allow admin to add user once at a time. Is there a way to add in multiple user with a uploaded name list ?
View 3 Replies
Apr 29, 2010
I have question regarding printer option page which pop up when i click on print button on crystalreportviewer and when i click okay on that pop up page it displays print preview of the report.
Is there any way to skip that pop up window(Printer Option) and just display (PDF)print preview screen instead?
(I am not exporting report to pdf, just want to display printview screen and when the user click on print button it will print out the page)
I have tried following code but i am getting error:
"Object reference not set to an instance of an object."
[code]....
View 2 Replies
Mar 24, 2011
I have upgraded web application from VS.2008 to vs 2010. I was using previously ReportViewer 2008 control in a page and replaced with 2010 ReportViewer Control.
I have installed the ReportViewer Redistributable also in my local pc as well as in the server. Also as per the new requirement I have placed the Scriptmanager in the web page where the reportviewer control located.
While running the page, the reportviewer run the report and is not showing the data on the screen. It shows the blank screen. But If I export the data to execl or world it is showing the data. Also the page numbers in the reportviewer showing the total pages available in the navigation bar. I am sure the report is running and bringing the data to the screen but not showing it.
View 1 Replies
Jan 18, 2010
The below is the exact scenario, One form will be there and when user click on "Edit" hyper link other window will open to get more details. In that new window also I have a grid or a table which has other hyperlink which lead to open other window and in that window I will enter few details and save it....
[code]....
View 3 Replies
May 19, 2010
I have created my first MVC application. I am using forms authenticataion. I have created a custom action filter MyAppAuthorizationFilter which inherits from AuthorizeFilter. Inside this filter I'm authenticating the user credentials by checking them against a database table (by overriding OnAuthorize method). If the user is not authenticated, I am redirecting the users to a login page (which is view of LoginController). I am using this filter agaginst my main controller so that all actions in this filter will execute only if the user is authenticated.
I do not have any problem when I use the asp.net development server (shipped with Visual Studio). But when I deploy the app to our IIS7 server, I can see the login screen when I access the default url, but after entering the credentials (both correct and incorrect) and posting back the Login page, it stays on the Login page (clears the pwd, but not the username). Its never getting redirected to the home screen or invalid login screen.
IIS 7 server has .net framework 3.5SP1, but no MVC. So I deployed the System.Web.Mvc dll in the bin folder.
Here's my Code (I've omitted the views and models as they are not needed here):
[MyAppAuthorizationFilter]
public class MainController : Controller
{
//
// GET: / [code]......
View 2 Replies
Oct 4, 2010
I am using the below code where I put this tag on a .aspx page:
"<a name="tips"></a>"
Now if I from another page run the code in the hyperlink to navigate to this page2 where I have the above tag. The page will scroll down to this tag automatically where this tag will be at the TOP of the screen.
My question now is if it is instead possible to scroll to the position where you have this tag at the BOTTOM of the screen instead ?
[Code]....
View 7 Replies
Dec 14, 2010
how i can open my asp.net program on full screen (like i press F11)
Through C# code ?
View 4 Replies
Aug 27, 2010
Im running a web application in visual studio 2008...
while running, my first web page url is [URL] while i run this in another system, it is [URL] Really eager to know what is this all about...
because the images in root folder are displaying in my system but not in another system...
View 2 Replies
Jul 12, 2010
Question: I have a web setup project.
It installs the webapp and puts it into the appropriate virtual directory.
So far so good.
My question now is: how do I set folder write permission?
My problem is, I can set the permissions programmatically, but I need to know the IIS user the application runs under, since it's that user that need the permissions.
View 1 Replies
Feb 18, 2010
I need to put the TabControl in the WebApplication... but i dont know how i do that?
View 4 Replies
Jun 15, 2010
I installed Visual Studio 2010 (ultimate). When I click on New Project-> Visual Basic (or C#)-> Web, the only options i get is AjaxControlExtender, AjaxServerControl and ASP.Net Server Control. How do i get the ASP.Net WebApplication option to show up?
View 1 Replies
Jul 27, 2010
I am using Visual Studio 2010, Windows 7 and IIS. I have written a small WebApplication and I want to publish the WebApplication in the localhost. So I click on the project in Visual Studio => Publish => choose File Sytem => Local IIS. After that, I get an error:
To access local IIS Web sites, you must install the following IIS
components:
IIS 6 Metabase and IIS 6 Configuration Compatibility ASP.NET
In addition, you must run Visual Studio in the context of an administrator account. For more information, Press F1.
This topic is new for me, so I am a beginner. What exactly must I do to solve this error?
View 2 Replies
Sep 13, 2010
I wonder if there are some differences between creating a WCF service and an MVC web-application. If you know of good links on how to create such a service for an MVC application that returns a JSON object please do post them.
View 1 Replies
Mar 13, 2011
I am trying dynamically to create an .ics file when ever a user clicks on a attend button in an asp.net application . But it is throwing an runtime error. if we dont have any controllers except other than a single button control , we were able to generate the .ics file, but a full fledged aspx page which in turn is associated with an master page . we are getting errors.can some one let us know if there is an alternative solution for these kind of issues.
View 4 Replies
May 14, 2010
can you tell me what is the difference between webservice and webapplication.
View 4 Replies
Aug 26, 2010
i have done Export to Excel code from Gridview to Excel Sheet. i have got the download Dialog box. How to Get the Button Value whether the datas are saved/Downloaded or Dialog box is closed by hitting cancel button .....
i want to identify the button hitted is Save or Cancel in the Download dialog Box.
code :
public void Export(GridView GridView1, DataTable dtGuid)
{
string attachment = "attachment; filename=ScratchcardDetails.xls";
Response.ClearContent();.....
View 1 Replies
Sep 28, 2010
i am trying to use vb 6.0 dll which is for window application in .net webapplication so tell me can i use it if yes then
View 1 Replies
Aug 10, 2010
Is there any way to use WINSCP in WebApplication. My purpose is i shoud need to retrieve the files or folder through secure way means by the way of SFTP or FTP. So that i would like to create an application which is having the feature of file retrievan through secured way.
I would be more good if an ready made dll available to configure with Webapplication in order to achieve the retrieval procees through secured SFTP or FTP
View 4 Replies