【问题标题】:IReport combine Landscape and Portrait orientationIReport 结合横向和纵向方向
【发布时间】:2011-10-25 20:46:12
【问题描述】:

有人知道在同一报告中结合横向和纵向方向的一种模式,在 IReport 上吗?记住我想要一个 PDF 文档作为结果。

谢谢,

克莱伯·阿尔贝托。

【问题讨论】:

    标签: java pdf pdf-generation ireport


    【解决方案1】:

    我认为仅使用 iReport 和 JasperReports API 是不可能的。
    orientation 属性是针对整个报告而不是其中的一部分确定的。

    即使是 JR API 也允许为报告设置 orientation 属性:

    JasperDesign.setOrientation(OrientationEnum orientationValue) 
    

    -sets the report orientation

    可能是DynamicJasper可以帮你解决这个问题。 引用DJ site:

    自动报告布局:只需定义最少的一组选项和 DJ 会照顾布局。生成相同的不是问题 报告更多不同的页面大小和方向!

    您可以尝试从 DJ API 使用此方法:

    public DynamicReportBuilder DynamicReportBuilder.setPageSizeAndOrientation(Page page)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-29
      • 2015-09-09
      • 1970-01-01
      • 2012-08-17
      • 2018-10-11
      • 1970-01-01
      相关资源
      最近更新 更多