字體:小 中 大 |
|
|
|
| 2008/10/23 13:55:16瀏覽1439|回應0|推薦0 | |
狀況: 想要透過 jmesa 2.3.5 匯出 EXCEL 與 PDF, 在caption 為英文時可以正常運作, jmesa 會產生以 caption 為檔案名稱的 EXCEL 或 PDF, 例如: caption=ABC, jmesa 匯出的檔名為 "ABC.xls" 或 "ABC.pdf" 但是如果 caption=中文, jmesa 就無法匯出 檔名為 "中文.xls" 或 "中文.pdf" 解法: Step1. 開啟 org.jmesa.view.xxx.xxxViewExporter (xxx 代表 excel, pdf 等jmesa 支援匯出的格式, 如果是 jexcel, 就是 org.jmesa.view.jexcel.JExcelViewExporter )
fileName= java.net.URLEncoder.encode(fileName, "UTF-8"); |
|
| ( 不分類|不分類 ) |


字體:






