问题
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