Launching Excel From App?
Apr 17, 2013
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?
View 5 Replies
Similar Messages:
Jun 7, 2010
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?
View 2 Replies
Jan 31, 2010
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)
View 4 Replies
Oct 20, 2010
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.
View 1 Replies
Jun 11, 2010
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.
View 1 Replies
Aug 5, 2010
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.
View 3 Replies
Jan 20, 2010
here .aspx file in one website is communicating with .asmx file in another website so its taking some time to displat the simulator.
View 2 Replies
May 10, 2010
How can I launch an Outlook email window (similar to what mailto: does in a hyperlink) ?
This needs to be done in a LinkButton click event.
View 1 Replies
Jul 15, 2010
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
View 1 Replies
Oct 7, 2010
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.
View 1 Replies
May 4, 2010
I copied the code from this tutorial:
[URL] into a page in a test project.
The problem is that when i push the client side button, it shows the popup and immediately refreshes (reseting to initial state of course).
Why is this happening in my new web project, but in that tutorial's demo doesn't?
I'm using IE7, FF3.5, VS2008, latest Ajax Control Toolkit.
View 8 Replies
Mar 18, 2010
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.
View 1 Replies
Jun 9, 2010
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?
View 1 Replies
Apr 21, 2010
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?
View 2 Replies
Mar 12, 2010
I have a ModalPopupExtender that i am launching from JavaScript function openGiftDonations(GuestID){
View 1 Replies
May 28, 2010
Using C#, ASP.NET 3.5, VS 2008.
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?
View 5 Replies
Apr 18, 2010
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?
View 6 Replies
Sep 15, 2010
I am launching a pdf document using either:
1. Response.Redirect("filepath/document.pdf"), or
2. Response.ContentType = "Application/pdf"
Response.WriteFile("filepath/document.pdf")
Response.End()
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)
View 14 Replies
Jun 10, 2010
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?
View 2 Replies
Nov 2, 2010
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.
View 1 Replies
Apr 6, 2014
i use this code to export data into word.
Protected Sub Export(sender As Object, e As EventArgs) Handles btn_printexcel.Click
Response.Clear()
Response.Buffer = True
[Code]....
but the export docs will be downloaded into the user computer.
what should i do so that the exported docs is save into the server?
View 1 Replies
Jun 11, 2013
I need to auto fit the dropdown width to auto fit with the cell in excel using c#.net.
I have exported the dropdown to the excel using c#.
when the column width of the cell is increated, the width of the dropdown should be auto fit to the width of the cell.
View 1 Replies
Feb 18, 2011
i want to export multiple tables in a dataset to excel workbook with each tables as sheets without using COM Interop or Excel Object.
View 2 Replies
Sep 22, 2010
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.
View 1 Replies
Apr 9, 2010
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
View 2 Replies