https://issues.apache.org/bugzilla/show_bug.cgi?id=32475
Joern Muehlencord <[EMAIL PROTECTED]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #2 from Joern Muehlencord <[EMAIL PROTECTED]> 2008-08-20 08:59:59
PST ---
Does not work with 3.1-final either.
@Test
public void testGenerateExcelFile() throws Exception {
String fileName = "TestSetRepeatingRowsAndColumns.xls";
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet1 = wb.createSheet("new sheet");
HSSFSheet sheet2 = wb.createSheet("second sheet");
// Set the columns to repeat from column 0 to 2 on the first sheet
wb.setRepeatingRowsAndColumns(0, -1, -1, 0, 0);
// Set the the repeating rows and columns on the second sheet.
// if the following line is removed, the excel is ok, if added, an error is
shown, when opening the workbook
wb.setRepeatingRowsAndColumns(0, -1, -1, 0, 0);
try {
FileOutputStream fileOut = new FileOutputStream(fileName);
wb.write(fileOut);
fileOut.close();
System.out.println ("File written to "+fileOut.toString());
} catch (Exception ex) {
fail("Cannot write file!");
}
}
--
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]