try read xlsx file and execute shiftrows
sheetReport.ShiftRows(sheetReport.LastRowNum-2, sheetReport.LastRowNum, 100);
result
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
min row when not error
sheetReport.ShiftRows(sheetReport.LastRowNum-5, sheetReport.LastRowNum, 100);
sheetReport.ShiftRows(sheetReport.LastRowNum-2, sheetReport.LastRowNum, 100);
result
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
min row when not error
sheetReport.ShiftRows(sheetReport.LastRowNum-5, sheetReport.LastRowNum, 100);