I have an xml data and I'm using report viewer to convert it to PDF. I have nested data and so I'm using subreports. In one of the cases, i have two subreports Sub1 and Sub2 coming from 1 Main report, who are calling a common subreport SubSub1. SubSub1 has some common data and further has subreports for data specifically related to Sub1 And Sub2.
<MainReport>
<Sub1>
<SubSub1>
<data>
</data>
</SubSub1>
</Sub1>
<Sub2>
<SubSub1>
<data>
</data>
</SubSub1>
<Sub2>
<MainReport>
I was able to get a little further on this. The nature of this data is such that I have multiple MainReports. Currently I'm getting correct data for Sub1 And Sub2 for the first MainReport, but the later ones are showing data of the 1st MainReport. Debugging shows that the correct data is being added to the reportdatasource for SubSub1, but the reportviewer displays data of the first MainReport (instead of 2nd, 3rd...). Why is reportviewer stuck with data from the previous datasource?