SheetOpenCell Method |
Namespace: Aceoffix.ExcelReader
The A1-style notation is defined in Microsoft Excel. For example: "A1".
![]() |
---|
Note: There is a limit that the maximum number of columns per worksheet is 676 and the maximum number of rows is 65,536 in Excel2003 and earlier versions. Please do not exceed the maximum number of columns when input the parameter of CellAddress. |
Aceoffix.ExcelReader.Workbook wb = new Aceoffix.ExcelReader.Workbook(); Aceoffix.ExcelReader.Sheet sheet1 = wb.OpenSheet("sheet1"); string strCompanyName = sheet1.OpenCell("D1").Value; string strProductName = sheet1.OpenCell("D2").Value; string strProductCode = sheet1.OpenCell("D3").Value; string strAddress = sheet1.OpenCell("F6").Value; //After you get the value, you can save them to the database. wb.Close();