Turning off a report dialog
When no user interaction is required, the report can be run directly without the report dialog. This short recipe will show how this can be done.
How to do it...
In the controller class of the report, add the following code:
public static void main(Args args) { PktRdlItemTransController controller; controller = new PktRdlItemTransController(); controller.parmReportName(ssrsReportStr(PktRdlItemTransList, ItemTransList)); controller.parmArgs(args); //turn off dialog controller.parmShowDialog(false); controller.startOperation(); }
Run the report to see that the report opens up directly without any prompts.