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

SubReport binding in 2012 Q3.

0 Answers 12 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Raka
Top achievements
Rank 1
Raka asked on 29 Jan 2013, 01:32 PM
Hello

We just converted to this version of Telerik and are having problems with all of our reports that use subreports.
I have looked at several options that people have suggested but so far no luck. 

Can someone please help?

Here is the code that we are using --

We set SubReportDS with
  MainReport report1 = new MainReport();
  report.SubReportDS = MyData;

and define SubReprtDS with --

public object SubReportDS
{
   set {   
    MainReport report1 = new MainReport();  

       Telerik.Reporting.SubReport subReport1 = 
        (Telerik.Reporting.
SubReport)report1.Items.Find("subReport", true)[0];

    Telerik.Reporting.InstanceReportSource
        (Telerik.Reporting.
InstanceReportSource) subReport1.ReportSource;  

    Telerik.Reporting.Report sub2 = (Telerik.Reporting.Report)irs.ReportDocument;

 

    sub2.DataSource =  value;
    }
}

The end result of this is a report that contains that main section which is populated.  It also
subReport sections but none of the subReport sections have data in them. 

Any help will be appreciated.
Thank you - Raka.

 

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Raka
Top achievements
Rank 1
Share this question
or