1.11M Members

How to bind subreport of subreport

 
0
 

Hello,

I couldn't bind subreport's datasource which,itself is a subreport
of another report. Can you guys help me out ?

Thanks.

 
0
 

static,
Same as you work with simple report.

 
0
 

adatapost
Thanks, but I tried too, maybe i was in the wrong way
can u give me some codes for example ??

 
0
 

static,
Which version of Visual studio are you using?

 
0
 

I am using vs 2005

 
0
 

static,
Attached zip - Crystal Report and Sub Report.

 
0
 

Thank you very much for your help
and sorry for my unclear message .
The problem is that i am using Report Viewer not Crystal Report.

Let's say there is three reports of report viewer : grandparent,parent, and grandchild reports

Grandparent has a sub report Parent and that Parent, too,has a sub report Grandchild.

We can set datasource to Parent subreport by the followni code.

GrandParent.SubReportProcessing+=new SubreportProcessingEventHandler(GrandParent_SubreportProcessing);

GrandParent_SubreportProcessing(object sender,SubreportProcessingEventArgs e)
{
   e.DataSources.Add(DataSource);
}

That's how Parent sub report data source is set. There , how do i set that of Grand Child sub report ? The object "sender" isn't Parent sub report.
Anyway , thanks to adatapost

 
0
 

I'm using RAQ Report now. I find it very useful. It's a free excel-like reporting tool. It can meet your need. Maybe you can try it. You can download it at http://www.raqsoft.com/

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article