... ($Day->isFirst()) { $row++; $col = 0; } if (!$Day->isEmpty()) { $table->setCellContents($row, $col, $Day->thisDay()); $t = sprintf('%4d-%02d-%02d', $Day->thisYear(), ... table containing your data, and then send a content-type HTTP header with the value of application/vnd.ms-excel followed by your table. The web browser will accept the header and treat the HTML ... $workbook->addFormat();$format->setNumFormat('[Blue]0;[Red]0;[Green]0;@ *-& apos;);$worksheet->write(0, 1, 10, $format);$worksheet->write(0, 1, -1 0, $format);$worksheet->write(0,...