Download Blangko Kartu Keluarga Kosong Excel Here

// Apply borders to header row $sheet->getStyle("A$row:H$row")->getBorders()->getAllBorders()->setBorderStyle(Border::BORDER_THIN);

// ------------------------------- // 4. Empty Rows (for 10 family members) // ------------------------------- for ($i = 1; $i <= 10; $i++) $dataRow = $row + $i; $sheet->setCellValue("A$dataRow", $i); for ($colIdx = 'B'; $colIdx <= 'H'; $colIdx++) $sheet->setCellValue($colIdx . $dataRow, ''); Download Blangko Kartu Keluarga Kosong Excel

wb.save("Blangko_KK_Kosong.xlsx") <button onclick="downloadKK()">📥 Download Blangko KK Kosong (Excel)</button> <script> function downloadKK() window.location.href = 'download_kk_blank.php'; $filename

$row++; $sheet->setCellValue("A$row", 'Kab/Kota:'); $sheet->setCellValue("B$row", ' '); $sheet->setCellValue("D$row", 'Provinsi:'); $sheet->setCellValue("E$row", ' '); $sheet->setCellValue("G$row", 'Kode Pos:'); $sheet->setCellValue("H$row", '_____'); $filename . '"')

// ------------------------------- // 6. Output File // ------------------------------- $filename = 'Blangko_KK_Kosong_' . date('Ymd') . '.xlsx'; header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'); header('Content-Disposition: attachment;filename="' . $filename . '"'); header('Cache-Control: max-age=0');

// ------------------------------- // 5. Footer (Tanda Tangan & Info) // ------------------------------- $footerRow = $row + 12; $sheet->setCellValue("G$footerRow", 'Kepala Desa/Lurah,'); $footerRow++; $sheet->setCellValue("G$footerRow", '_________________________'); $footerRow++; $sheet->setCellValue("G$footerRow", '(Nama jelas & stempel)');