Skip to content

Commit

Permalink
修改
Browse files Browse the repository at this point in the history
  • Loading branch information
RankinChen committed Mar 29, 2020
1 parent c0f6715 commit 4d9a5b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 6 additions & 1 deletion ExecExecl/ExecExcelFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,16 @@ public static List<ExportExcelDto> ReadExcel(string filePath, string fileName =

foreach (ExcelWorksheet worksheet in worksheets)
{
if (worksheet.Dimension == null)
{
continue;
}

int rowIndex = 3;

int rowCount = worksheet.Cells.Rows;
//获得有数据的区域
var lastAddress = worksheet.Dimension.Address;
//var lastAddress = worksheet.Dimension.Address;
//获得有数据的区域最上且最左的单元格
//var startCell = worksheet.Dimension.Start.Address;
//获得有数据的区域最下且最右的单元格
Expand Down
1 change: 0 additions & 1 deletion ExecExecl/MainFOrm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4d9a5b9

Please sign in to comment.