evenly spreading data in to multiple columns

流过昼夜 提交于 2019-11-29 12:06:32

问题


I need to create a jasper report that contains two columns of data of equal length. For example, I have a collection of 50 columns. I want precisely two columns of 25 entries each. How can I do this?

Thanks.


回答1:


Using iReport

  1. Start iReport.
  2. Click File » New.
  3. Click Open this template.
  4. Click Next.
  5. Click Finish.
  6. Click report1 in the Report Inspector.
  7. Scroll down in the Properties panel until you see Columns.
  8. Change Columns from 1 to 2.
  9. Scroll down until you see Print order.
  10. Change the value to Horizontal.

The page content should divide in half. Place the objects in the left-hand side of the page.

Using Jaspersoft Studio

  1. Open JasperSoft Studio 5.6.
  2. Open Report
  3. Click report name in the Outline view
  4. In Report Properties, click Report
  5. Scroll down to "Edit Page Format"
  6. Change the columns

By printing the object values across the page, rather than down each column, the results will split evenly between the two columns. (A horizontal print order will prevent a lopsided split.)



来源:https://stackoverflow.com/questions/4294779/evenly-spreading-data-in-to-multiple-columns

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!