The HSSFSheet.getFitToPage() returns true as for XLS with "Adjust to" as for "Fit to" PageSetup/Scaling options. After HSSFSheet.setFitToPage(true) the resulted XLS is still in "Adjust to" regime. It is little strange because the HSSFPrintSetup getScale(),getFitWidth (),setFitHeight()and corresponding get methods are working fine. Can somebody from dev team look at getFitToPage() & setFitToPage() methods and fix them ? As I understand - it is something wrong with WSBoolRecord class... Thanks in advance, Peter
I found workaround in description of bug 20479 (to use HSSFSheet.setAutobreaks (true); and it really solves the problem but I think that it is necessary to fix this bug.
20479 mentioned in the previous comment is a xalan bug! can someone update this to point to the correct workaround?
Proper number of related bug is 20497
*** This bug has been marked as a duplicate of 20497 ***