[英]How to show multiple detail in single section in crystal report?
I am working on crystal reports and I am stuck here with one problem. 我正在制作水晶报表,但我遇到了一个问题。 I am showing results for IDs and they are working like: 我正在显示ID的结果,它们的工作方式如下:
ID Name Date Comments
1 A '2012-01-01' Comments 1 on the date
1 A '2012-01-01' Comments 2 on the same date
Now if I want to show data like: 现在,如果我想显示如下数据:
Details of the ABC Company
...............................................................................
ID Name Date Comments
1 A '2012-01-01' aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
ccccccccccccccccccccccccccccccccccccccccc
Details of DEF company
...............................................................................
ID Name Date Comments
2 B '2013-01-11' rciwtyiabtbtaerynct
hubytnituinmyuimyumiy
jk jk jk jk jk jk jk uir
How to achieve that? 如何实现呢? I am least interested in creating a subreport for the sections below. 我对为以下部分创建子报告最不感兴趣。
I guess your main concern is only the Header section which says 'Details of the ABC Company' etc etc.For that you may use GroupExpert(RightClick on Report-->Insert-->Group) and you may group it with your Details company header section 我想您主要关心的只是标题部分,上面写着``ABC公司的详细信息''等,为此您可以使用GroupExpert(RightClick on Report-> Insert-> Group)并将其与您的Details公司分组标头部分
for grouping you may refer Grouping 1 对于分组,您可以参考分组1
and here Grouping 2 在这里分组2
Hope it helps 希望能帮助到你
You can create a formula that would be the combination of ID, name and Date. 您可以创建一个由ID,名称和日期组成的公式。 Then group on that formula 然后根据该公式分组
if it is okay to have a different line, then simply put the fields ID, name and Date and group at teh group level and comment at the detail level 如果可以使用另一行,则只需将ID,名称,日期和组字段放在组级别,并在详细信息级别添加注释
if it is not okay to have a different line, then put hte fields ID, name, Date and comment to the detail line and do a suppress formula so that they are only showed on the first element of the group (formula to be find out) 如果不能改行,则将字段ID,名称,日期和注释放在详细信息行中,并执行抑制公式,以使它们仅显示在组的第一个元素上(要查找的公式) )
在您的水晶报表中,右键单击详细信息部分,然后选择下面的插入部分,现在您有两个详细信息部分,a和bu也可以添加多个详细信息部分和页面标题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.