Question

I am working with Seagate Crystal Report Software. After having designed the report, I am facing a typical problem that needs to be addressed. Suppose I have multiple values in one column, seperated by a ','(comma). I need to display it in multiple rows. How do I go about doing that. Eg :

Table name : Student the student table from which report needs to be generated

The report should look like this : enter image description here

I know the basics of creating a report. So you can skip all that details while answering. Thanks a lot.

Was it helpful?

Solution

Create a formula field named 'subjects':

// {@subjects}
Replace( {table.subject}, ",", Chr(10)+Chr(13) )

Add this field to the details section.

You could also create a SQL-Expression field:

// {%subjects}
(
  REPLACE( subject, ',', CHR(10)||CHR(13) )
)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top