diff --git a/civicrm/CRM/Report/Form.php b/civicrm/CRM/Report/Form.php index a136d9ef6c8bb2b8622817f6f6ef667b78d20bda..51cd5459709080d008e31b119838a889fb2c3507 100644 --- a/civicrm/CRM/Report/Form.php +++ b/civicrm/CRM/Report/Form.php @@ -155,6 +155,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. * @@ -3455,6 +3458,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);