我在PHP中的文档中添加了页眉/页脚.但我在最后一页有两次页脚内容.
我有这个代码的用户: –
PHP
header("Content-type: application/vnd.ms-word");
header("Content-Disposition: attachment;Filename=HelloWorld.doc");
?>
我在PHP中的文档中添加了页眉/页脚.但我在最后一页有两次页脚内容.
我有这个代码的用户: –
PHP
header("Content-type: application/vnd.ms-word");
header("Content-Disposition: attachment;Filename=HelloWorld.doc");
?>
PHP
header("Content-type: application/vnd.ms-word");
header("Content-Disposition: attachment;Filename=HelloWorld.doc");
?>
Meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
此外,您还可以查看PHPWord库.它会让你的生活更轻松:
https://github.com/PHPOffice/PHPWord