public function subReport($name,$params=array())
    {
        $subReports = Utility::get($this->reportSettings, "subReports");
        $class = Utility::get($subReports, $name);
        if ($class!=null) {
            $params["@reportName"] = $name;
            $r = new $class($params);
            echo "<sub-report id='$name' name='$name'>";
            $r->run()->render();
            echo "</sub-report>";
            $GLOBALS["__ACTIVE_KOOLREPORT__"] = $this;
        } else {
            trigger_error(
                "Could not find [$name] subreport, please define this report in the "
                .Utility::getClassName($this)
                ."::settings()",
                E_USER_WARNING
            );
        }
    }