How to display dataset result as left to right?

余生长醉 提交于 2019-12-23 01:19:13

问题


I am new to BIRT, i am trying to display my BIRT report data from left to right horizontally, Default, table data fills vertically,But i would like to have exactly opposite to it,What i have to do to achieve this?

My Dataset

student_name
student_1
student_2
student_3

My expected result would be ,

student_name student_1 student_2 student_3

How can i show data horizontally in BIRT?


回答1:


You can achieve this using a List element bound to the dataset, instead of a table element. As shown in the screen below, the key-point is to add a grid in "detail" section of the list and set its display property to "inline". Then you can arrange one or multiple data fields as you like within this grid, embed sub-grids etc.

For example this dummy report displays days of a date range from left to right. The PDF export of this sample also works using an inline list. Notice this "inline" value is not taken into account by all emitters, but it renders as expected at least with HTML and PDF emitters.



来源:https://stackoverflow.com/questions/28672042/how-to-display-dataset-result-as-left-to-right

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