[英]How to Merge Rows in Crystal Report?
i am using Crystal Report Version=10.2 , Visual Studio 2008 and displaying the result of stored procedure in crystal report my stored procedure returns output as shown below 我正在使用Crystal Report Version = 10.2,Visual Studio 2008并在crystal report中显示存储过程的结果我的存储过程返回输出,如下所示
but i want to display in report as shown below 但我想在报告中显示如下所示
thanks in advance 提前致谢
Use group for Com No.
and put the details of Sub - Status and Date in the details section. 使用组Com No.
,并在详细信息部分中输入子状态和日期的详细信息。
Initially it will look like 最初它看起来像
---------------------------------------------
Com No. | Desc. | Status | Date |
---------------------------------------------
1 | a |
| sub | 01/01/2012|
| ack | 02/01/2012|
| inv | 03/01/2012|
---------------------------------------------
Then: 然后:
Use the section expert and set overlay on for the group. 使用专家部分并为该组设置叠加。 So you will get the following: 所以你会得到以下内容:
---------------------------------------------
Com No. | Desc. | Status | Date |
---------------------------------------------
1 | a | sub | 01/01/2012|
| ack | 02/01/2012|
| inv | 03/01/2012|
---------------------------------------------
Putting the value of Com No
and Desc
in the middle of the box is tricky. 将Com No
和Desc
的值放在框的中间是很棘手的。 If you know the number of rows in the detail section, you can increase the height of the group header in proportion can give you the result: 如果你知道详细信息部分中的行数,你可以按比例增加组头的高度,可以得到结果:
---------------------------------------------
Com No. | Desc. | Status | Date |
---------------------------------------------
| sub | 01/01/2012|
1 | a | ack | 02/01/2012|
| inv | 03/01/2012|
---------------------------------------------
First step 第一步
2nd step 第二步
Third step 第三步
4th step 第四步
Run the report. 运行报告。
或者,您可以使用交叉表来显示数据。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.