diff --git a/civicrm/CRM/Report/Form.php b/civicrm/CRM/Report/Form.php index c07f760b503de1ab5576ed1d4bd764984b8d9000..eaca994d0b2ab6af87bd17bbb60676721e86b26f 100644 --- a/civicrm/CRM/Report/Form.php +++ b/civicrm/CRM/Report/Form.php @@ -139,6 +139,9 @@ class CRM_Report_Form extends CRM_Core_Form { */ protected $_groupFilter = FALSE; + // [ML] Required for civiexportexcel + public $supportsExportExcel = TRUE; + /** * Has the report been optimised for group filtering. * @@ -3470,6 +3473,9 @@ WHERE cg.extends IN ('" . implode("','", $this->_customGroupExtends) . "') AND elseif ($this->_outputMode == 'csv') { CRM_Report_Utils_Report::export2csv($this, $rows); } + elseif ($this->_outputMode == 'excel2007') { + CRM_CiviExportExcel_Utils_Report::export2excel2007($this, $rows); + } elseif ($this->_outputMode == 'group') { $group = $this->_params['groups']; $this->add2group($group);