'MaatWebsite 2.1.0: Mergecell is not working

In the system, there's compatibility of exporting the record to csv. It is working but I want to merge certain rows for my title header

For example

A2 to I2, these cells should be merge and want to put my header there.

$sheet->mergeCells('A2:I2');
$sheet->setCellValue('A2', $module);

Question: How can I merge the certain cell and put a value?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source