有没有做用php生成或导出到word格式的.
我生成的是web格式的. function exporttofile($pcontent)
{
 $mime_type="text/x-sql";
 $content_encoding="";
 $PMA_USR_BROWSER_AGENT="IE";
 //$filename="email.txt";// $filename="email.txt";
        //$sqldump=t3lib_div::_GP('sqldump');
//$pcontent=$sqldump;
//$filename='companyinfo'.time().'.XLS';
$filename='resume_'.time().'.doc'; ob_end_clean();
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Pragma: no-cache');
header('Content-Encoding: none');
header('Content-Disposition: attachment; filename='.$filename);
header('Content-Length: ' . strlen($pcontent));
//header('Content-type: txt');
header("Content-type:application/vnd.ms-word");
echo $pcontent;
exit;
}