Bug 20701 - HSSFSheet.getFitToPage(), HSSFSheet.setFitToPage() are not working
Summary: HSSFSheet.getFitToPage(), HSSFSheet.setFitToPage() are not working
Status: RESOLVED DUPLICATE of bug 20497
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 2.0-dev
Hardware: PC All
: P3 blocker with 1 vote (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2003-06-12 07:38 UTC by Peter
Modified: 2005-03-20 17:06 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
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" 

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,
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 ***