https://issues.apache.org/bugzilla/show_bug.cgi?id=46654
Summary: "Unable to read file" after "shiftRows"
Product: POI
Version: 3.5-dev
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: major
Priority: P2
Component: HSSF
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=23215)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=23215)
Testing file
I use following codes to open an Excel file, then call "sheet.shiftRows", but
the output file cannot be opened by MS Excel. It prompted "Unable to read
file." error message.
--
HSSFWorkbook wb = new HSSFWorkbook(ExcelUtil.fixInputStream(new
FileInputStream("unable_to_read_file.xls")));
HSSFSheet sheet = wb.getSheet("Other");
sheet.shiftRows(12, 165, 12, false, true);
wb.write(new FileOutputStream("unable_to_read_file.output.xls"));
--
Please use the attached file for testing, thanks a lot!
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]