c# - How to display all values if no value passed to parameter in crystal report? -
i have crystal study containing parameter field. parameter field works long pas values it. want want display values when no parameter passed. when pass no parameter dialog box appears telling me select values want pass parameter. work out tried re-create values utilize pass parameter , stored them in array. tried pass array failed. can help me past .
p.s: array thing because couldn't think of else.
rpt_uni unirpt = new rpt_uni(); unirpt.setdatasource(unids.tables["uni"]); if (cmb_report.selectedindex == 0) { unirpt.setparametervalue("uniparam", txt_uniname.text); } else { unirpt.setparametervalue("uniparameter", ""); } crystalreportviewer1.reportsource = unirpt; crystalreportviewer1.refresh();
if have access entire parameter values list (or static , won't change), can this:
stringvar parameterlist; if isnull({?inputparameter}) // to-do assemble entire list 1 string: thatstring parameterlist := thatstring; else parameterlist := totext({?inputparameter}); c# crystal-reports crystal-reports-2008
No comments:
Post a Comment