【问题标题】:Color Format not appearing using ireport 4.8 or ireport 4.7 while exporting to excel导出到 excel 时使用 ireport 4.8 或 ireport 4.7 不显示颜色格式
【发布时间】:2013-02-13 15:17:28
【问题描述】:

我对 ireport 有一个严重的问题,我将文本的背景颜色设置为 [231,233,219] 的 RGB 值,并在使用 excel 预览时将 opaque 属性设置为 true,我能够查看相同的颜色,但在将报告保存为 pdf 后或通过代码导出为pdf颜色RGB值更改为[255,255,204]。

【问题讨论】:

    标签: java jakarta-ee web-applications jasper-reports ireport


    【解决方案1】:

    ireport 使用基本配色方案生成 Excel 报告。但是如果我们想使用一些高级配色方案,我们应该遵循以下步骤

    1. 获取 jxl 2.6 jar
    2. 获取itext 2.1.7.jar
    3. 用户 JExcelApiExporter 用于开发 excel 报告并将 JExcelApiExporterParameter.CREATE_CUSTOM_PALETTE 设置为 true

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多