Run report without using the runbase report framework in MSD Axapta


 static void Reports_runReportSilent(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();  
 }