2015-06-18 50 views
0

在pdf中導出jasper報告時未顯示傳遞給參數的marathi字符(使用unicode)。在pdf中導出jasper報告時未顯示馬拉蒂字符

JRExporter ex=new JRPdfExporter(); 
    ex.setParameter(JRExporterParameter.CHARACTER_ENCODING,"UTF-8"); 
    ex.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); 
    ex.setParameter(JRExporterParameter.OUTPUT_FILE_NAME,"E:/DATA/"+fileNewNameF); 

回答

0

我的問題是解決 我用

`JRGraphics2DExporter exporter = new JRGraphics2DExporter(); 
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); 
    exporter.setParameter(JRGraphics2DExporterParameter.GRAPHICS_2D, grx); 
    exporter.setParameter(JRExporterParameter.PAGE_INDEX, new Integer(i)); 
    exporter.exportReport();` 
相關問題