JasperReport-同一报告中的不同方向(横向和纵向) [英] JasperReport - different orientation(landscape and portrait) in same report

查看:682
本文介绍了JasperReport-同一报告中的不同方向(横向和纵向)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按照其他几位成员的要求,在相似的行上,我只希望对我的子报表之一进行横向定位.我正在使用iReport 5.6.0和JasperReports 5.6.0.

As asked by few other members, on similar line, I want to have landscape orientation for only one of my subreport. I am using iReport 5.6.0 and JasperReports 5.6.0.

我进行了搜索,几乎所有解决方案都建议有2个单独的报告,并按照提及的方式以编程方式添加/添加

I searched and almost all solutions suggest to have 2 separate reports and add/append them programmatically as mentioned here.

该解决方案可能对我来说并不理想,因为我有4个动态子报表(可以在运行时生成可变数量的页面),并且我只希望 第三个子报表被美化.因此,在运行时很难确定要添加我的环境美化报告的点.

This solution is probably not ideal for me as I have 4 dynamic subreports(can produce variable number of pages at run time) and I want only third subreport to be landscaped. So, at run time it will be difficult to identify the point to append my landscaped report.

我的问题:

  1. 现在是否在iReport的任何新版本中引入了此本机功能,以支持子报表的不同方向?

  1. Is this native feature now introduced in any new version of iReport to support different orientation of subreport?

如果iReport中没有内置支持,如何以编程方式添加 子报表,如果我不知道该子报表将添加到哪个位置/页面.

If no inbuilt support in iReport, how can I programatically add subreport in between, if I don't know at which location/page the subreport will be added.

我也尝试在JasperSoft Studio中寻找解决方案,但没有成功.

I tried to look for a solution in JasperSoft Studio as well, but not success.

谢谢.

推荐答案

从JasperReports v6.0开始,您可以使用

Starting with JasperReports v6.0 you may achieve what you want with a Report Book. It is basically a report bundle where each report can have a different orientation.

但是,由于Jaspersoft Studio(版本5.5.0)成为JasperReports的官方设计客户端,因此您无法在iReport中找到此功能.因此,从Jaspersoft Studio v6.0开始,您将可以使用它.

But since Jaspersoft Studio(with version 5.5.0) became the official design client for JasperReports, you will not find this feature in iReport. So starting with Jaspersoft Studio v6.0 you will be able to use it.

这篇关于JasperReport-同一报告中的不同方向(横向和纵向)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆