0
I’m using rdlc
for reporting. I upload and retrieve the required data from a csv
(collaborator, enrollment...).
Within my routine while
, I am using the following code to override the parameters of report
:
ReportParameter[] prReport = new ReportParameter[8];
prReport[0] = new ReportParameter("vlColaborador", sColaborador, false);
prReport[1] = new ReportParameter("vlMatricula", sMatricula, false);
prReport[2] = new ReportParameter("vlFuncao", sFuncao, false);
prReport[3] = new ReportParameter("vlCentroCusto", sCentroCusto, false);
prReport[4] = new ReportParameter("vlAdmissao", sAdmissao, false);
prReport[5] = new ReportParameter("vlDtOcorrencia", sDtOcorrencia, false);
prReport[6] = new ReportParameter("vlMotivo", sMotivo, false);
prReport[7] = new ReportParameter("vlDtHoje", DateTime.Now.ToString().Substring(0, 10), false);
// atualiza reportviewer
this.reportViewer1.LocalReport.SetParameters(prReport);
this.reportViewer1.RefreshReport();
Follows image of the way I set up the report:
But as I am using the same routine, at all times it just updates the current page, always keeping 1/1
.
How do I insert a new page into this routine? No overwriting the current one?
Must do using a
datasource
. So you’ll always have only one page.– Bruno Warmling