0

I have to generate a SSRS multiple page report. I have a list "data" and have to do following.
data contains name, salary and address

data[0] = abc,1000,def
data[1] = pqr,2000,xyz

for(int i =0; i<data.Count; i++)
{    
   //when the value of i is 0 information must be printed on 1st page.
   //when value of is 1 information must be printed on 2nd page and so on...
}
user1859022
  • 2,585
  • 1
  • 21
  • 33
boy_shiv
  • 9
  • 2

1 Answers1

0

What I believe you are looking for is a for loop construct like so:

for (int i = 0; i < data.Length;)
{
    int page = ++i;

    // Write the data on the page in the int variable above.
}
aevitas
  • 3,753
  • 2
  • 28
  • 39
  • I am new to SSRS so I dont know anything about it. Can you please tell me more how can I go to next page. I have ReportViewer1 and I am binding my report as follows ReportDataSource rds = new ReportDataSource("DataSetCostSheet", data); reportCostSheet.LocalReport.DataSources.Add(rds); – boy_shiv Jul 15 '14 at 14:26
  • @boy_shiv Refer to this question: http://stackoverflow.com/questions/6904994/can-the-net-reportviewer-control-be-fully-operated-by-code-only-ie-minus-the – aevitas Jul 15 '14 at 14:31