Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将多个页面添加到具有相同布局和不同内容的JR报表中?
我正在尝试为员工打印工资单。因此,我不想打印员工的每张工资单,而是想将所有这些工资单一起打印在一个碧玉报告中。根据员工人数,每页一张工资单,多页。
在列表或地图中填充您的数据。然后,使用适当的JRDataSource - JRMapDataSource or JRBeanDataSource并将其传递给JReport exporter - PDF, XLS, whatever. 您甚至可以使用您的数据源填充表格并将每一行打印为单独的工资单(如果您已正确填充数据)。
JRDataSource - JRMapDataSource or JRBeanDataSource
JReport exporter - PDF, XLS, whatever
简而言之,将数据填充到集合中,然后遍历JasperReport Detail Band.
JasperReport Detail Band
我强烈建议使用iReportDesigner 工具JasperReports。
iReport
JasperReports
祝你好运!
我有两个元素,我想通过使第二个元素水平移动固定数量的像素<table>,以特定方式垂直排列它们。<table>
<table>
例如:
<table id="table1" align="center"> ... </table> <table id="table2" style="padding-