This function is called just before the report is opened (such as in a browser).

$obro_open - (integer) whether to open the report; defaults to 1 (open) or 0 (don't open) based on the current user setting

This is a good event to use the ShellExecute() function to call another program to act on or process the report.


function onBeforeReportOpen() {
 $obro_open=false; // disable opening the report
 $cp.CommandLine='"'+$cp.ApplicationName+'" "'+$_JOB.report.filename+'"';
 CreateProcess($cp); // open the report in Notepad