https://issues.apache.org/bugzilla/show_bug.cgi?id=46703
Summary: There is no setDisplayZeros(boolean) method in HSSFSheet
Product: POI
Version: 3.2-FINAL
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: HSSF
AssignedTo: [email protected]
ReportedBy: [email protected]
There are setDisplayGridlines() and other methods, which call
protected Sheet HSSFSheet.getSheet() and then
Sheet.windowTwo.setDisplayGridlines(). There is setDisplayZeros() method in
WindowTwoRecord class, but it can't be called from HSSFSheet.
Fix of it is easy to implement by adding getter/setter methods to HSSFSheet and
Sheet.
Currently the way to implement it is using of reflection:
Field sheetField = HSSFSheet.class.getDeclaredField( "sheet" );
sheetField.setAccessible( true );
Sheet sheet = (Sheet)sheetField.get( hssfSheet );
Field windowTwoRecordField =
Sheet.class.getDeclaredField( "windowTwo" );
windowTwoRecordField.setAccessible( true );
WindowTwoRecord windowTwoRecord =
(WindowTwoRecord)windowTwoRecordField.get( sheet );
windowTwoRecord.setDisplayZeros( false );
--
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]