开发者

Display array values in Crystal Report

开发者 https://www.devze.com 2022-12-14 09:41 出处:网络
I am generating and display crystal report from my as开发者_开发知识库p.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

I am generating and display crystal report from my as开发者_开发知识库p.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


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);
  • Crystal Report with DataSet and DataTable using C#
  • Creating Crystal Reports using C# with Datasets
0

精彩评论

暂无评论...
验证码 换一张
取 消