V
vinisha9
Guest
Hi,
I have webpage in which I have a button. I am trying to open an excel file from a network location when clicked on a button, but we don't have office installed on the server. Since I am using Microsoft.office.interop.excel.dll , it was working on my local computer but when i host this on the server, it is throwing errror. Is there any way i can open an excel file without office installed. Below is the code I am using.
Microsoft.Office.Interop.Excel.Application excelApp = new Microsoft.Office.Interop.Excel.Application();
excelApp.Visible = true;
excelApp.Workbooks.Open("\\\\servername\\c$\\Data.xlsx");
Continue reading...
I have webpage in which I have a button. I am trying to open an excel file from a network location when clicked on a button, but we don't have office installed on the server. Since I am using Microsoft.office.interop.excel.dll , it was working on my local computer but when i host this on the server, it is throwing errror. Is there any way i can open an excel file without office installed. Below is the code I am using.
Microsoft.Office.Interop.Excel.Application excelApp = new Microsoft.Office.Interop.Excel.Application();
excelApp.Visible = true;
excelApp.Workbooks.Open("\\\\servername\\c$\\Data.xlsx");
Continue reading...