Commit b76adb8
committed
Improve worksheet handling in ExcelService
Updated the file header in `ExcelService.cs` to include an MIT license statement. Enhanced the logic for handling missing worksheets by selecting the first worksheet as a fallback if the specified worksheet is not found. Added error handling for cases where the workbook contains no worksheets, improving code robustness.1 parent 522fd29 commit b76adb8
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
| |||
0 commit comments