如何从左到右显示数据集结果

如何从左到右显示数据集结果

本文介绍了如何从左到右显示数据集结果?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是BIRT的新手,我试图从左到右水平地显示我的BIRT报告数据,默认值,表数据垂直填充,但是我想要完全相反,我要做的是实现这一点?



我的数据集

  student_name 
student_1
student_2
student_3

我的预期结果将是

  student_name student_1 student_2 student_3 

如何在BIRT中水平显示数据?

解决方案

您可以使用列表元素到数据集,而不是一个表元素。如下图所示,关键点是在列表的detail部分添加一个网格,并将其显示属性设置为inline。然后,您可以在此网格内安排一个或多个数据字段,嵌入子网格等。





例如显示从左到右的日期范围的日期。 的PDF导出也可以使用内联列表。请注意,所有排放者都不会考虑此内联值,但是至少与HTML和PDF发射器一样呈现。


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?

解决方案

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.

这篇关于如何从左到右显示数据集结果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 08:16