我必须生成SSRS多页报告。我有一个列表“数据”,必须做以下 数据包含姓名,工资和地址
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...
}
答案 0 :(得分:0)
我相信您正在寻找的是for
循环结构,如下所示:
for (int i = 0; i < data.Length;)
{
int page = ++i;
// Write the data on the page in the int variable above.
}