Possible for a webpage to read/export cells from Excel?

... or easier with php

It's not that hard in .NET either...

Code:
using Excel = Microsoft.Office.Interop.Excel;
 
...
 
Excel.Application excel = new Excel.Application();
 
Excel.Workbook workbook = excel.Workbooks.Open(@"Test.xlsx", Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
 
Excel.Worksheet worksheet = workbook.Worksheets[1] as Excel.Worksheet;
Excel.Range range = worksheet.Cells["2", "C"] as Excel.Range;
 
Label1.Text = range.Value2.ToString();
 
excel.Quit();
 
Last edited:
Back
Top Bottom