Thursday 23 February 2012

how to open a report from form with without using dialog?

static void Reports_ExecuteReportSilent(Args _args)
{
       Args                           args;
       SysReportRun            reportRun;
       ;
       args = new Args();
       args.name(reportstr(MyReport));
       reportRun = classFactory.reportRunClass(args);
       reportRun.query().interactive(false);
       reportRun.report().interactive(false);
       reportRun.setTarget(PrintMedium::Printer);
       reportRun.run();
}

1 comment: