We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
2.7.1
input.xls
string inputFile = "input.xlsx"; IWorkbook workbook; using (FileStream file = new FileStream(inputFile, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { workbook = new HSSFWorkbook(file); //workbook = new XSSFWorkbook(file); } ISheet sheet = workbook.GetSheetAt(0); sheet.ShiftRows(3, sheet.LastRowNum, 1); sheet.CopyRow(4, 3); string outputFile = "output.xlsx"; using (FileStream file = new FileStream(outputFile, FileMode.Create, FileAccess.Write)) { workbook.Write(file); }
After moving a row down, it fails to copy the row correctly, and the output does not match the expected result.
The text was updated successfully, but these errors were encountered:
#1329 contains a fix for row-shifting
Sorry, something went wrong.
No branches or pull requests
NPOI Version
2.7.1
File Type
Upload the Excel File
input.xls
Reproduce Steps
Issue Description
After moving a row down, it fails to copy the row correctly, and the output does not match the expected result.
inpuit:
output:
The output result of XSSFWorkbook is shown in the following image:(Expected result):
The text was updated successfully, but these errors were encountered: