[英]Crystal Report: How to make one field data to be two column in Report
sorry i just learn using the CRYSTAL REPORT and I got a problem, I hope no one wants to help find a solution for me. 抱歉,我只是学习使用CRYSTAL REPORT,但遇到问题,我希望没有人愿意帮我找到解决方案。
I have 2 data field, and I want to add one field with the selection of another data field this field 我有2个数据字段,我想添加一个字段并选择另一个数据字段
+------------+-------------+
|data_1 |data_2 |
|m |100 |
|k |200 |
|m |230 |
+------------+-------------+
i wants reports 我想要报告
+------------+-------------+
|m |k |
|100 | |
| |200 |
|230 | |
+------------+-------------+
I suppose you have your fields in detail section. 我想您有详细的字段部分。 To solve your problem make 2 detail sections (section a and section b). 要解决您的问题,请制作2个详细部分(a部分和b部分)。
In section a
put your data_2
field under your data_1
label, in section b
put your data_2
field under your data_2
label. 在section a
将data_2
字段置于data_1
标签下,在section b
将data_2
字段置于data_2
标签下。 Only thing you need to make it work is to write proper formula for suppress in section expert. 使它起作用的唯一需要做的就是在节专家中编写适当的抑制公式。
For your example 举个例子
section a suppress formula like if data_1 = m then false else true
分段一个抑制公式,例如, if data_1 = m then false else true
section b suppress formula like if data_1 = m then true else false
b部分抑制公式,例如if data_1 = m then true else false
I didn't tested this on some example but i think it should work or at least help you to find proper solution. 我没有在某些示例上对此进行测试,但是我认为它应该可以工作,或者至少可以帮助您找到合适的解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.