以PDF格式导出jasper报告时未显示马拉地语字符

时间:2015-06-18 05:12:20

标签: jasper-reports

以PDF格式导出jasper报告时,未显示传递给参数的马拉地语字符(使用unicode)。

  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);

1 个答案:

答案 0 :(得分: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();`