Open Excel file on Local Computer which is located on Server Using Asp.Net - TechRepublic
Question
October 11, 2006 at 11:17 PM
deshpandevd

Open Excel file on Local Computer which is located on Server Using Asp.Net

by deshpandevd . Updated 19 years, 2 months ago

Hello

I want to open a Excel file on my local computer.
File is located on Server Computer.

I am using Microsoft Office XP.

I try this code

Excel.Workbook theWorkbook = ExcelObj.Workbooks.Open(
openFileDialog1.FileName, 0, true, 5,
“”, “”, true, Excel.XlPlatform.xlWindows, “\t”, false, false,
0, true);

Excel.Sheets sheets = theWorkbook.Worksheets;

Excel.Worksheet worksheet = (Excel.Worksheet)sheets.get_Item(1);

But it doesn’t Work

So plz Tell me how i open the Excel file by using Asp.Net

Thanks

Vivek

This discussion is locked

All Comments