0
votes

I am generating and display crystal report from my asp.net application. In the code, i have a array of numbers that I want to be able to display in the report. so if in my code I have int[] {1,4,5,6,8,10 } I want to somehow pass this array to crystal report so that we have 6 rows in the details section of the report where each row is showing one value from the array..so we will have a report like:

1
4
5
6
8
10

is this possible..how..please help

1

1 Answers

1
votes

If you are doing this from .Net, you should be able to achieve this by creating a custom dataset and data table, filling the values in the data table as you require, and then provide the datatable as source to your Crystal report.

Have a look at some of these articles, they should help you in the direction you need

Ignore the section where the database corrections are mad.

Focus on the section where it sets the datasource

// Setting data source of our report object
objRpt.SetDataSource(Ds);