【问题标题】:Grid Lines are displayed in Jasper Report while creating Docx Report创建 Docx 报告时,Jasper 报告中显示网格线
【发布时间】:2015-02-10 01:41:14
【问题描述】:

生成Docx报告的代码如下:

JRDocxExporter exporter = new JRDocxExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);

ByteArrayOutputStream baos = new ByteArrayOutputStream();
exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, baos);
exporter.setParameter(JRDocxExporterParameter.FRAMES_AS_NESTED_TABLES, Boolean.FALSE);
exporter.setParameter(JRDocxExporterParameter.FLEXIBLE_ROW_HEIGHT, Boolean.TRUE);

exporter.exportReport();
bytes = baos.toByteArray();

我已将正在生成的文件的内容类型设置为 - “application/vnd.openxmlformats-officedocument.wordprocessingml.document”。

【问题讨论】:

  • 我可以通过修改 word 中的设置来解决这个问题,在 MS Word 中更改布局部分并禁用视图贪婪线。

标签: jasper-reports docx


【解决方案1】:

我可以通过修改 word 中的设置来解决此问题,在 MS Word 中进入布局部分并禁用查看贪婪线。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-30
    • 1970-01-01
    • 2012-02-02
    • 1970-01-01
    相关资源
    最近更新 更多