I don't know why, but it works fine when setRepeatiingRows method called after
setLandscape.
SXSSFWorkbook wb = new SXSSFWorkbook(100);
Sheet sh = wb.createSheet();
XSSFPrintSetup ps = (XSSFPrintSetup) sh.getPrintSetup();
ps.setLandscape(true);
sh.setRepeatingRows(CellRangeAddress.valueOf("1:1"));
try {
FileOutputStream out = new FileOutputStream("Test.xlsx");
wb.write(out);
out.close();
wb.dispose();
} catch (Exception e) {
System.out.print("Exception happens!!!");
}
Ryo Yamamoto
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]