IReport结合了风景和人像方向

时间:2011-10-25 20:46:12

标签: java pdf pdf-generation ireport

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

谢谢,

Cleber Alberto。

1 个答案:

答案 0 :(得分: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)
相关问题