Hi,
I have a tax form that is 8.5 x 11 that displays the data for a vendor twice on the same page (top and bottom). I created a report that is 8.5 x 5.5 that is used as a template for the data. I then created a report with two 8.5 x 5.5 subreports that are the report from above. If the report has two records, I want page one to display Vendor A on the top and bottom, and page two to display Vendor B on the top and bottom. What I am getting is Vendor A at the top and Vendor B at the bottom on page one, and the same on page two. How can this be done? Thank you.
My code:
I have a tax form that is 8.5 x 11 that displays the data for a vendor twice on the same page (top and bottom). I created a report that is 8.5 x 5.5 that is used as a template for the data. I then created a report with two 8.5 x 5.5 subreports that are the report from above. If the report has two records, I want page one to display Vendor A on the top and bottom, and page two to display Vendor B on the top and bottom. What I am getting is Vendor A at the top and Vendor B at the bottom on page one, and the same on page two. How can this be done? Thank you.
My code:
// in ctor of main report
sr1099Top.ReportSource = new Forms.v5.SR_Vendor1099() { Name = "sr1099Top" };
sr1099Bottom.ReportSource = new Forms.v5.SR_Vendor1099() { Name = "sr1099Bottom" };
sr1099Top.ReportSource.DataSource = sr1099Bottom.ReportSource.DataSource = ds.Tables["Vendors"].DefaultView;