actually am trying to create a word document with some content(dynamic content) it goes more than 3 pages ... my problem here is i need a page break between the content.. here is my code
Code: Select all
$data .="<table width=75% align=center border=0><tr><td>".$final_data."</td></tr></table>";
echo $data;
$filename = $quate_type.".doc";
//$filename = str_replace(' ','',$filename);
$fh = fopen($filename, 'w') or die("can't open file");
$fwrite = fwrite($fh,$data);
header("Content-Transfer-Encoding: 8bit");
header("Content-Description: File Transfer");
header("Content-Type: application/text/html;");
header("Content-Disposition: attachment; filename=\"" . basename($filename) . "\"");