i've crystal reports report 2 parameters. default prompt of crystal reports looks this:
then same prompt second parameter, etc.
i'd know if there's way catch parameter value prompt before displays, can create modified looking prompt one:
i hope you've understood meant.
the parameter value prompt appears either when connect crystalreportviewer report "choose crystal report" dialog , run project or when manually set reportsource property of crystalreportviewer inside code , execution of project reaches point.
so, can following achieve goal.
- create crystalreportviewer without connecting "choose crystal report" dialog.
- create form behave prompt dialog values want.
- on main form, create event show report in crystalreportviewer e.g. button_click.
- inside event, create instance of report, show prompt form have created showdialog method, set values retrieve prompt form report setparametervalue method , set reportsource property of crystalreportviewer report.
if set values parameters using report's setparametervalue method, original prompt window not appear.
Comments
Post a Comment