从JasperReports中的记录字段填充表

时间:2018-10-21 16:36:47

标签: java jasper-reports

我需要在一段时间内打印包含所有发票的报告。每张发票将打印在单独的页面上(每条记录后分页)。

发票具有常规信息:日期,客户,州...以及发票行列表:

发票行类别:

public class InvoiceLine {

   private Product product;
   private long quantity;
   private float unitPrice;
   private Invoice invoice;

  // getters and setters  
}

发票类别:

 public class Invoice {

   private Customer customer;
   private Date creationDate;
   private String state;
   private List<InvoiceLine> invoiceLines;

  // getters and setters  
}

我正在使用表格组件显示每个发票的发票行列表。

我的问题是如何在不使用子报表功能的情况下从invoiceLines字段填充表格。

0 个答案:

没有答案