samithagun
samithagun

Reputation: 693

Concatenate string field in crystal reports

I have below data in my detail section.

Contract No 
VTC/2013/0026
VTC/2013/0028
VTC/2013/0030

These data are belong to a one field in a table and there can be more.

I want to display the same details in the report header like below.

VTC/2013/0026, VTC/2013/0028, VTC/2013/0030, ...

How can I do that without using a sub-report?

Upvotes: 2

Views: 9342

Answers (1)

Siva
Siva

Reputation: 9101

Follow below steps:

  1. Create a formula Concat and write below code and place in right most part of the report.

Shared Stringvar a;

a:=a+Contract No+", " ;

  1. now create one more formula display and place in report header.

    EvaluateAfter(@Concat); Shared Stringvar a; a

Upvotes: 4

Related Questions