read file excel
This commit is contained in:
parent
1e9b168697
commit
ac5baf64ef
1 changed files with 3 additions and 3 deletions
|
|
@ -723,7 +723,7 @@ namespace BMA.EHR.Recruit.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;
|
||||
|
|
@ -1057,7 +1057,7 @@ namespace BMA.EHR.Recruit.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;
|
||||
|
|
@ -1272,7 +1272,7 @@ namespace BMA.EHR.Recruit.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