Jasper Report 交叉表添加参数
我在将参数插入 jasper 报告交叉表的左上角时遇到问题。我需要在左上角有一些“文本”(看起来很奇怪),虽然我很确定这并不容易,甚至不合法,但我想检查是否有人尝试过类似的壮举。
I am having problem inserting a parameter into the top left hand corner of my jasper report cross tab. I need some "text" at the top left hand corner (seems strange), and although i am quite sure this is not easy or even legal, i would like to check if anyone has attempted something a similar feat.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试创建一个交叉表变量(度量),其值等于参数的值。将代表性交叉表度量添加到交叉表中,而不是参数。
Try creating a crosstab variable (a measure) whose value is equal to the value of the parameter. Add the representative crosstab measure to the crosstab, rather than the parameter.
添加交叉表标题,您可以在交叉表布局结构中找到该标题。默认情况下不会应用它,因此您必须添加它。
然后,您可以在左上角添加静态/文本字段,无论您想要什么,您都可以使用交叉表标题的自由布局属性来正确调整这些元素。
Add crosstab header, which you can find in the crosstab layout structure. By default it will be not applied so you have to add it.
Then you can add static/text fields, whatever you want at the top left corner in that, and you can properly adjust those elements using free layout property of the crosstab header.