| public MainPage() |
| { |
| InitializeComponent(); |
| reportViewer1.RenderBegin += RenderBegin1; |
| } |
| private void RenderBegin1(object sender, RenderBeginEventArgs args) |
| { |
| args.ParameterValues["StartDate"] = DateTime.Now; |
| args.ParameterValues["Andra"] = "fff"; |
| } |
| private void NeedDataSource1(object sender, EventArgs e) |
| { |
| var items = this.ReportParameters; |
| var list = new List<Person>(); |
| for (var i = 0; i < 100; i++) |
| { |
| list.Add(new Person() {LastName = "Last1", FirstName = "First1"}); |
| list.Add(new Person() { LastName = "Last2", FirstName = "First2" }); |
| } |
| this.DataSource = list; |
| } |
Hi,
I want to develop a pdf report using Telerik Report. Below is my problem statement:
Problem Statement:
I have to develop a report in which I have 4 data sections(Actually Table) say
Section 1
Section 2
Section 3
Section 4
All the sections are releated in such a way that the re can be multiplle section1 and under Section1 there can be multiple section2 and under each section 2 there can be multiple section3 & section4.
Data Source would be a list of anonymous type which would be a result of linq query.Below is the pattern in which I have the data soure:
List of {Department, Gender, EmpId, Employee Name}
Data: {D1, M, 1, AAA}
{D1, M, 2, SSS}
{D1, F, 3, XXX}
{D1, F, 4, UUU}
{D2, M, 5, PPP}
{D2, M, 6, RRR}
{D2, F, 7, BBB}
{D3, M, 8, MMM}
{D4, F, 9, JJJ}
{D4, F, 10, LLL}
{D4, M, 11, RRR}
{D4, M, 12, QQQ}
Desired Output:
Report Header
Section1 D1
Section2 M
Section3,4 1,AAA
Section3,4 2,SSS
Section2 F
Section3,4 3,XXX
Section3,4 4,UUU
again the same way the data is repeated. So Could you please provide me the help in implementing this.
Thanks!
Regards,
Mohit