We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb356f3 commit 992d8b0Copy full SHA for 992d8b0
ExcelWriter.php
@@ -22,15 +22,9 @@ public function write($writerType = 'Excel2007') {
22
$xl = new PHPExcel();
23
$sheet = $xl->getSheet(0);
24
25
- // Sheet headers
26
- foreach ($exporter->getExportHeaders() as $colNum => $header) {
27
- $sheet->setCellValueByColumnAndRow($colNum, 1, $header);
28
- }
29
-
30
- // Sheet rows
31
foreach ($exporter->export() as $rowNum => $row) {
32
foreach ($row as $colNum => $value) {
33
- $sheet->setCellValueByColumnAndRow($colNum, $rowNum + 2, $value);
+ $sheet->setCellValueByColumnAndRow($colNum, $rowNum + 1, $value);
34
}
35
36
@@ -39,4 +33,4 @@ public function write($writerType = 'Excel2007') {
39
40
return $filename;
41
42
-}
+}
0 commit comments