poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44523] Select Sheet Tab does not work correctly
Date Tue, 04 Mar 2008 12:39:22 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44523





--- Comment #3 from Michael <michael.hunziker@trivadis.com>  2008-03-04 04:39:22 ---
Created an attachment (id=21619)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=21619)
POI Outputfile (Sheet 3 should be selected)

FileOutputStream out = new FileOutputStream("test_hmi.xls");
InputStream input = RunImport.class.getResourceAsStream( "simple.xls" );
POIFSFileSystem fs = new POIFSFileSystem( input );
HSSFWorkbook wb = new HSSFWorkbook(fs);

// Select last sheet
wb.setSelectedTab((short)(wb.getNumberOfSheets()-1));

wb.write(out);
out.close();

// Note that sheet 3 is displayed in the output file but its tab is not
correctly selected (sheet 1 remains selected)


-- 
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message