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 20899] New: - HSSFCell setCellValue problem
Date Thu, 19 Jun 2003 05:12:35 GMT
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=20899>.
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=20899

HSSFCell  setCellValue  problem

           Summary: HSSFCell  setCellValue  problem
           Product: POI
           Version: 1.5.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: UNCONFIRMED
          Severity: Normal
          Priority: Other
         Component: HSSF
        AssignedTo: poi-dev@jakarta.apache.org
        ReportedBy: joblee@so-net.net.tw


when the string u is not a enlgish or number sentence,the file data have 
problem.

FileOutputStream  out = new FileOutputStream ("C:/workbook.xls");		
HSSFWorkbook wb = new HSSFWorkbook();
HSSFRow r = null;
HSSFCell c = null;
r = s.createRow((short)0);
c = r.createCell((short)0);	
String u="ܘZ";
c.setCellValue(u);
c.setCellType( HSSFCell.CELL_TYPE_STRING );
c.setEncoding(HSSFCell.ENCODING_COMPRESSED_UNICODE);
wb.write(out);

Mime
View raw message