vb.net - ReportViewer Multiple Report Parameters -


is possible include multiple report parameters in single line? if have 10 parameters, don't want create "add" keyword 10 times ...

localreport.setparameters("newparameter1", "first one") 

having repeat seem redundant

just store parameters in array ... example:

dim rptitle = new reportparameter("rptitle", "your title") dim rpdate = new reportparameter("rpdate", date.now()) dim headerparams reportparameter() = {rptitle, rpdate} 

now have array contains 2 report parameters ... (it can include more).

then need loop through headerparams array so:

for each param reportparameter in headerparams     localreport.setparameters(param) next 

that way don't need setparameters more once in code... loop it.


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -