Bug 20701

Summary: HSSFSheet.getFitToPage(), HSSFSheet.setFitToPage() are not working
Product: POI Reporter: Peter <prozovski>
Component: HSSFAssignee: POI Developers List <dev>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 2.0-dev   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description Peter 2003-06-12 07:38:26 UTC
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
Comment 1 Peter 2003-06-12 16:23:07 UTC
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.
Comment 2 Avik Sengupta 2003-07-01 14:57:40 UTC
20479 mentioned in the previous comment is a xalan bug! can someone update this
to point to the correct workaround?
Comment 3 Peter 2003-07-02 13:06:08 UTC
Proper number of related bug is 20497
Comment 4 Andy Oliver 2003-07-24 16:51:22 UTC

*** This bug has been marked as a duplicate of 20497 ***