How do I change the orientation of a table in a BIRT report

懵懂的女人 提交于 2019-12-11 11:58:22

问题


I need to change the orientation of a table in a BIRT report so that the table header is vertical instead of horizontal.

Is this possible? I don't want to use a Crosstab.


回答1:


Not in box (up to 3.7). You have to use 3'd party libs like that one.




回答2:


It seems this thread is still being pointed at so I posted an example of a horizontal table layout using a crosstab. I know it won't help the original author but others following this thread now may find this helpful.

To create the horizontal grouping, first create your query like normal, then create a Data Cube. In this data cube, drag each field that you want into a group. Then drag a new crosstab on the report and drag each field into the top right column group area. It will create a new header row for each field. Don't put anything in the left side (Rows) and don't put anything in the measure field (bottom-right). This will create labels on the left... and the data will extend out to the right.

The report design example can be downloaded from: http://developer.actuate.com/community/forum/index.php?/files/file/1079-horizontal-table-using-crosstab/

Virgil




回答3:


If you want dataset records to be reported across the page, this would have to be done via a crosstab.

If you want dataset records to be reported down the page, this can't be done automatically as far as I know. However, it can be done by inserting a new detail line in your report table object for each database field to be reported, then moving column headings from the heading row into the first column's detail rows and moving record values into the second column's detail rows.

So, for example, a report with 6 columns in it would become a two column report with six detail rows.



来源:https://stackoverflow.com/questions/7754802/how-do-i-change-the-orientation-of-a-table-in-a-birt-report

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