This is a migrated thread and some comments may be shown as answers.

How to show table in report group?

1 Answer 96 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Wenting
Top achievements
Rank 1
Wenting asked on 03 Aug 2012, 11:31 AM
Hi there!

I am trying to use telerik reporting to show customer's invoice table. I want every page with just one customer and one invoice table so I use report group. But I don't know how to set the datasource of the invoice table in every page. Can anyone help me?

My data structure is 

Customer
{
string customer_name;
List<Invoice> invoiceList;
}
 And I pass a List of Customers to report, and want it to show in this way

first page
customer1.name
the table of invoices of customer1
----------
second page
customer2.name
the table of invoices of customer2
----------
third page
.....

1 Answer, 1 is accepted

Sort by
0
IvanY
Telerik team
answered on 07 Aug 2012, 02:44 PM
Hi Wenting,

You will not be able to set the datasource of each page of the report. Instead you have to assign data source to the main report that holds all your data about all your customers. The detail section will repeat for each customer (that is of course if each record contains unique customer data). After that attach a second data source to the table, this time including all the customers and all the invoice related data (in that case the customer data will be duplicated and the invoice data for each customer will be unique). This should be enough to achieve what you want.

I hope that helps.

Kind regards,
IvanY
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
Wenting
Top achievements
Rank 1
Answers by
IvanY
Telerik team
Share this question
or