how to fetch data from excel sheet

D

dmshah01in

hi.
i am new to .net
i need to fetch data from excel sheet and display it on web page.
please help me how to do this???
 
G

Guest

hi.
i am new to .net
i need to fetch data from excel sheet and display it on web page.
please help me how to do this???

look for "excel" in the group

most recent example:

Dim oExcel As Excel.Application
oExcel = New Excel.Application
Dim oWorkbook As Excel.Workbook
oWorkbook =
oExcel.Workbooks.Open(Filename:=Request.ServerVariables("APPL_PHYSICAL_PATH")
& "otrapruebamas.xls") 'This line generates the exception
Dim x As String = oWorkbook.Worksheets(1).Range("A1").Value
 
M

Mark Rae

look for "excel" in the group

most recent example:

Dim oExcel As Excel.Application
oExcel = New Excel.Application
Dim oWorkbook As Excel.Workbook
oWorkbook =
oExcel.Workbooks.Open(Filename:=Request.ServerVariables("APPL_PHYSICAL_PATH")
& "otrapruebamas.xls") 'This line generates the exception
Dim x As String = oWorkbook.Worksheets(1).Range("A1").Value

Please don't advise people to use server-side Office automation - it is not
designed to work this way:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757#kb2
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top