Question Locked

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

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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

2 replies

by anandhr1980

I am not familiar in this but I give small idea to you.

Note: You need OfficeXp(2002) or above

Step1 Open Excel file
Step2 Save as Template
Step3 Then place the Excel sheet template in Server
Step4 Give authentication to that file
Step5 Now you can view Excel file from Client machine

This discussion is closed to new replies.