I have an app that outputs a gridview to excel spreadsheet and adds a couple of rows for accounting. I'm trying to launch the spreadsheet after its saved off, using
Code:
excelApp.ActiveWorkbook.SaveAs(filename);
excelApp.ActiveWorkbook.Saved = true;
excelApp.Quit();
var si= new ProcessStartInfo {FileName = filename, UseShellExecute = true}; //hits here and crashes
Process.Start(si);
it hits the marked line and crashes that it cant find the file, its automatically saving it to the documents folder on my local machine, and i cant seem to get it to save elsewhere (i have a data directory in the project i use for the other file types) that i would like to save to if possible, but it seems that if you have office installed it don't like it. i could always copy the file from documents to the datastore, but that's difficult.
how do i launch excel application using the file i just saved off to show to the bean crunchers?
I have an asp.net web app and I need to launch a pdf report that is developed in SSRS using SQL 2005. The SSRS report query has been created. How can I go about launching the report?
how do I launch a windows form from a web page. For instance, when you click a button the windows form should launch and the web page should continue to run in the background without the user seeing it (this is there a way to keep the web page alive after the windows form app launch)
I'm using the colorbox jquery plugin to load up a new page in an iframe, I've got the page to succesfully appear from clicking a hyperlink but I need to have the page appear from a postback, the reason being that I want to set some session variable before it loads. Here is a link to the colorbox page if your not familiar with it.
[URL]
Down the bottom of the examples is one called outside webpage (Iframe).I've no idea how to get that to work as a postback.
I'm working on redoing an existing application, the old one is a winform which has a toolbar with buttons what when clicked start MS word and another for Crystal reports. Is there a way to do that in asp.net webpage? As they want us to keep the toolbar and have those buttons if possible, but I wasn't sure if a webpage can launch them or not.
I am launching a click once application on button click. I am using Response.Redirect(http://domain.com/application.application) to open my click once application. If I click on that button again then I am able to open one more instance of that application again. I want to put a restriction so user can open only one application.
My current ASP.NET site requires to launch FFMPEG.EXE to convert uploaded videos. With shared web hosting server, can't be done but via a Virtual Private Server (VPS) or a dedicated server.
I've been reading some info about Windows Azure but haven't found any info regarding:
1. Be able to launch external executable
2. Be able to remote desktop into the allocated virtual machines
What do I have to add to c:inetpubwwwroot folder to serve aspx pages to browsers? My webproject is in this folder but I think I'm missing something for running ASP.NET and ASP.NET MVC webpages.
I know this is working correctly beacuse when I publish my website to my hosting provider, and request a resource in a protected directory, and I am not currently authenticated, I get automatically redirected to my login page and then once successfully authenticated granted access and redirected back to the sure *.aspx file in my protected directory (assuming I am authorized for those resources).
So that is working no problem.
However, when I run this from visual studio 2008 (F5) in debug mode, I am not being required to authenticate. It simply serves up the protected resource without asking for my credentials.
If I put a [PrincipalPermission(SecurityAction.Demand, Authenticated = true)] on a BLL class method, it will throw an security exception, but the page that is calling it is in a secure directory and I am never asked to authenticate using the login page.
I am closing and re-opening brosers, clearing cookies, etc..., but no matter what I do I am not automatically redirected to the login page, and the secure page when I launch from visual Studio running on the embedded local host. Thiis working perfectly externally, same build, same web.config, pointing to the same database, on the hosting provider. (yes, eventually, I will be using dev/test/prod db configurations to test, but for now for simplicity I am keeping it the same)
Not only is it maddening, but worse yet, it would obviously make testing this application impossible after the initial release.
I have an asp.net project in visual studio 2008I press F5 and the "test page" does not launch and I don't understand why.Looked at the properties for the site and "start action" is correctly set to "use current page"Similar question. assuming it automatically launched above, how does one open a 2nd instance of the current debug site (seems like their ought to be a "launch site" button?edit: I went back and launched VS as admin and it did launch the site. Maybe this is a security issue?
I just recently installed VS 2008 on my workstation. I tried creating a simple web site just to check if the installation was fine. The project compiled without error but when I tried running it, the Macromedia Dreamweaver software is being launch. It tried it several time and it's all the same.I remember during the installation there was an option that was displayed asking me to select Designer or Coder. Since the default is Designer i just click next.
Is there a way to stop launching dreamweaver from VS 2008 every time i try running the web project? Is because I selected "Designer" during the installation?
On a page with some user controls, I need to execute some lines of code only once (i.e. not on postback), however, the code must run after ALL page objects complete loading.
Example, Page1.aspx also contains uc1.ascx and uc2.ascx. If I imbed the code in a if (!PostBack) code block, it will end up running before the corresponding page load is completed for uc1 and uc2.
Is there a way to run the code on Page1.aspx once AFTER all the objects on the page have run thru their page load events?
I have the default.aspx page that I'm using javascript (in page_load) to open a new window (main.aspx) without toolbars/menus. This is the window I wan't up the remainder of the time. Is there a way to close the default.aspx page after opening the new window?
Both methods successfuly launch the PDF document displaying the document path and title in the title bar. For security reasons I'd like to HIDE the document title. Can someone advice how this can be done? (How can a PDF document be launched without showing the actual document's name)
How can I export data from a Gridview to excel and once exported the data should be formatted in right to left (arabic) manner. How can I achieve this?
I've got an .rdlc report which I print from my .net app (C# Visual Studio 2005), where I use a RemoteReportPrinter object. I give it as parameters the server name, report name, report parameters, etc. Works fine. My question is, I would live to do an analagous export of that report to Excel. Set it up exactly the same, but have it export to Excel rather than print, probably using some other type of object than RemoteReportPrinter.
We have the requirement to export the data from the grid excel. We can't install the Excel on the server. The excel generated need to be in the printable format. The excel generated needs to have custom headers, footers, repeatble rows, columns and landscape / portrait orientation style.
In my project I have to open excel application on click of a button without having ms-excel installed in server and the same case applies to word also. Please suggest me a solutions asap