Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
reading excel
i am trying to read excel using this code. also tried with ApplicationClass.
Microsoft.Office.Interop.Excel.Application app = new Microsoft.Office.Interop.Excel.Application(); Workbook book = null; Worksheet sheet = null; Range range = null; book = app.Workbooks.Open(openFile.FileName, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value); sheet = (Worksheet)book.Worksheets[1]; i am getting error at app.workbooks.Open ----- Exception from HRESULT: 0x800A03EC unable to find the solution Thanks for any help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel is reading formula as a value | Excel Worksheet Functions | |||
Reading TSv files in Excel | Excel Programming | |||
Reading registry with Excel | Excel Programming | |||
Reading CSV file from Excel (VBA) | Excel Programming | |||
Excel Reading | Excel Programming |