How to simulate a table in jaspersoft studio

流过昼夜 提交于 2020-01-05 06:55:33

问题


since I guess there is no way to rotate a table by 90° I started to simulate one by wrapping static text and text fields together in band. I enclose each static text to its text field which suppose to have the value for that static text and then enclose all rows (combination of static and text fields) in one band. But I can not adjust the stretch type in a way that all these components play together. Each text field has a different value and should be expandable to its content. For example field text for static text 3. All fields are set to stretch by over flow, position float, stretch type relative to band height. What are the correct adjustments for properties?

the structure is like this:

And this is how it looks like with text fields fading in each other:


回答1:


Put every row which can expand into a Frame. The frame Position Type should be Float.

Now this will keep the titles and content together.

Since you've set all other parameters accordingly, this should be enough to get the corrent layout.




回答2:


I set sub frames and text fields like this:

Position type float, stretch type: no stretch, stretch with overflow to true for text fields.

stretch with overflow to true for text fields.

main frame wich contains all other frames : float, relative to tallest object



来源:https://stackoverflow.com/questions/37789935/how-to-simulate-a-table-in-jaspersoft-studio

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