Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

enter image description here

but i want to display in report as shown below

enter image description here

thanks in advance

like image 902
d.Siva Avatar asked Jan 17 '23 08:01

d.Siva


1 Answers

Use group for Com No. and put the details of Sub - Status and Date in the details section.

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. 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|
---------------------------------------------
like image 176
Kangkan Avatar answered Jan 22 '23 02:01

Kangkan