code bug in using poi to export to excel
----------------------------------------

                 Key: DISPL-394
                 URL: http://jira.codehaus.org/browse/DISPL-394
             Project: DisplayTag
          Issue Type: Bug
          Components: Export
            Reporter: Brian


When I export to excel, I found that the table header is not displayed properly.
  But the table body is ok.

I checked the code and found out that if I change the code of method 
writeHeaderFooter in HssfTableWriter.java
  as the following, it works:
    private void writeHeaderFooter(String value, HSSFRow row, HSSFCellStyle 
style)
    {
        this.currentCell = row.createCell((short) this.colNum++);
        this.currentCell.setCellStyle(style);
        //cjy
        this.currentCell.setEncoding(HSSFCell.ENCODING_UTF_16);
        this.currentCell.setCellValue(value);
    }

If it is not a bug, I am really very sorry.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to