read file excel
This commit is contained in:
parent
7d891378be
commit
5f1f0feeb8
1 changed files with 3 additions and 3 deletions
|
|
@ -765,7 +765,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Controllers
|
|||
{
|
||||
// loop from sheet2 to end
|
||||
|
||||
for (int i = 1; i < c_package.Workbook.Worksheets.Count; i++)
|
||||
for (int i = 0; i < c_package.Workbook.Worksheets.Count; i++)
|
||||
{
|
||||
var workSheet = c_package.Workbook.Worksheets[i];
|
||||
var totalRows = workSheet.Dimension.Rows;
|
||||
|
|
@ -1129,7 +1129,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Controllers
|
|||
{
|
||||
// loop from sheet2 to end
|
||||
|
||||
for (int i = 1; i < c_package.Workbook.Worksheets.Count; i++)
|
||||
for (int i = 0; i < c_package.Workbook.Worksheets.Count; i++)
|
||||
{
|
||||
var workSheet = c_package.Workbook.Worksheets[i];
|
||||
var totalRows = workSheet.Dimension.Rows;
|
||||
|
|
@ -1378,7 +1378,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Controllers
|
|||
using (var c_package = new ExcelPackage(new FileInfo(importFile)))
|
||||
{
|
||||
// loop from sheet2 to end
|
||||
for (int i = 1; i < c_package.Workbook.Worksheets.Count; i++)
|
||||
for (int i = 0; i < c_package.Workbook.Worksheets.Count; i++)
|
||||
{
|
||||
var workSheet = c_package.Workbook.Worksheets[i];
|
||||
var totalRows = workSheet.Dimension.Rows;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue