Untuk mengisi data dinamis pada Report tersebut mudah tinggal beri saja coding PHP di dalamnya seperti biasa misal mengambil data dari database dst.
<?php
header("Content-Type: application/download\n");
header("Content-Disposition: attachment; filename=\"grafik barber johnson.xls\"");
header("Content-Transfer-Encoding: binary");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Pragma: public");
//include "koneksi.php";
//hari perawatan
//$qhp=mysql_query("SELECT SUM(DATEDIFF(tgl_keluar, tgl_pendaftaran) + 1) AS jmlhp FROM //kunjungan WHERE (tgl_pendaftaran >= '$tgl1' and tgl_pendaftaran <= '$tgl2') or (tgl_keluar >= '$tgl1' //and tgl_keluar <= '$tgl2') and jenis_kunjungan = 'Rawat Inap' AND NOT tgl_keluar IS NULL");
//$datahp=mysql_fetch_array($qhp);
//$nilaihp = $datahp['jmlhp'];
//...
?>
MIME-Version: 1.0
X-Document-Type: Workbook
Content-Type: multipart/related; boundary="----=_NextPart_01CD0915.924C0070"
This document is a Single File Web Page, also known as a Web Archive file. If you are seeing this message, your browser or editor doesn't support Web Archive files. Please download a browser that supports Web Archive, such as Windows® Internet Explorer®.
------=_NextPart_01CD0915.924C0070
Content-Location: file:///C:/0A4A9512/barber.htm
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="windows-1252"
....