You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2004/01/27 07:41:23 UTC
DO NOT REPLY [Bug 26455] New: -
Original sheet name cannnot be replaced to new one.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26455>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26455
Original sheet name cannnot be replaced to new one.
Summary: Original sheet name cannnot be replaced to new one.
Product: POI
Version: 1.0.2
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: Major
Priority: Other
Component: HSSF
AssignedTo: poi-dev@jakarta.apache.org
ReportedBy: junicho.tetsuji@future.co.jp
I can set a name of sheet,
but the set name cannot be replaced to another.
For example,
// create sheet
this.sheet = this.workbook.createSheet();
// set sheetname
this.workbook.setSheetName( 0, "SheetX", HSSFWorkbook.ENCODING_UTF_16 );
Then, I get the sheetname, which is is "SheetX".
Everything is neat so far, but
once I change the name to other one, say, "SheetY",
the sheet name becomes ".xls]SheetY".
The new name is unable to be changed anymore
because it has "." and "]" which are unpermitted characters
in the sheetname.
Is anything wrong with the codes?
---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-dev-help@jakarta.apache.org