简体   繁体   中英

Getting data on a single row

I have a stored procedure that return the data as shown below. There is 3 rows of information for evey company. I am trying to design a crystal report to display the data on a single row as shown below under Desired Output.

How can this be done ?

Loc facility ARtype days Revenue PPD
140 Company ABC MCD 1724 4000 137.76
140 Company ABC MRA 218 8000 327.69
140 Company ABC MPD 85 7000 166.84

Desired Output
140 Company ABC MCD 1724 4000 137.76 MRA 218 8000 327.69 MPD 85 7000 166.84

group by revenue and place your field in detail where you get individual record.

Now use the below formula.

Shared StringVar a;

a:=a+<<Database field>>;

Place the above formula beside the database filed in detail and supress

Now create another formula

Shared StringVar a;
a;

Place above formula in group footer.

Edit:

Create another formula reset

Shared StringVar a;
a:=" ";

Place this formula in group header and supress the formula as this not of user importance.

You can use below simple steps,

1] Assuming you are putting your data in detail section, go to Section Expert of detail section and check the checkbox having label Format with Multiple Columns

2] This will print your data the way you are expecting. For additional formatting, you will find layout tab generated once you check the checkbox. In that layout you can set the width of detail lines as well as gaps between lines etc.

I hope this helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM