Skip to content

Commit

Permalink
Merge pull request #1750 from HicServices/bugfix/excel-attacher-issues
Browse files Browse the repository at this point in the history
fix excel attacher bug
  • Loading branch information
bpeacock001 authored Feb 15, 2024
2 parents cc2b39d + c496cd4 commit 9bf0552
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Rdmp.Core/DataLoad/Modules/Attachers/ExcelAttacher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public class ExcelAttacher : FlatFileAttacher

private int ConvertColumnOffsetToInt()
{
if (ColumnOffset is null) return 0;
if(int.TryParse(ColumnOffset,out var result)) return result;
if (ColumnOffset.Length == 1 && char.IsLetter(ColumnOffset[0])) return char.ToUpper(ColumnOffset[0]) - 65;//would be 64, but we index from zero here
throw new Exception("Column offset is not a valid number or letter");
Expand Down

0 comments on commit 9bf0552

Please sign in to comment.