【问题标题】:Jasper Report export to xls (RTL)Jasper 报告导出到 xls (RTL)
【发布时间】:2015-12-07 13:16:45
【问题描述】:

我正在尝试以 RTL 模式导出 excel jasper 报告。我的报告属性似乎没有正常工作。 在本报告中,我使用以下属性来指导我的 excel 工作表 ti RTL。

net.sf.jasperreports.export.xlsx.sheet.direction=RTL

我也尝试了另一种方法:

 exporter = new JRXlsxExporter();
 exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(out));
 SimpleXlsReportConfiguration configuration = new SimpleXlsReportConfiguration();
 configuration.setSheetDirection(RunDirectionEnum.RTL);
 exporter.setConfiguration(configuration);

以上解决方案均无效。请有人帮帮我。

【问题讨论】:

    标签: jasper-reports right-to-left xlsx


    【解决方案1】:

    xlxs好像不支持sheet RTL,你可以使用xlx如下:

    exporter = new JRXlsExporter();
    exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(out));
    SimpleXlsReportConfiguration xlsReportConfig = new SimpleXlsReportConfiguration();
    xlsReportConfig.setSheetDirection(RunDirectionEnum.RTL);
    exporter.setConfiguration(xlsReportConfig);
    

    该问题已在以下位置提出:http://community.jaspersoft.com/jasperreports-library/issues/6566

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-01-04
      • 2011-11-25
      • 2018-07-07
      • 2016-09-08
      • 2019-06-20
      • 1970-01-01
      • 2017-06-24
      相关资源
      最近更新 更多