0
header('Content-Type: application/ms word');
header("Content-Disposition: attachment; filename = filename.docx");
header('Content-Transfer-Encoding: binary');
header("Pragma: no-cache");
header("Expires: 0");
header('Cache-Control: must-revalidate');
我用上面的代碼從數據庫中下載了一些數據的word文件。通過PHP包含頁眉和頁腳到MS Word文件
現在,我想在我的文件的每一頁上添加一個公司名稱和頁碼。我該怎麼做?
我試着拿到文件的行號。但失敗了。 – sree 2013-03-14 05:56:35
你想修改word文檔本身嗎? – adamdunson 2013-03-14 05:57:19
請包含您嘗試使用的代碼無效。 – FoolishSeth 2013-03-14 05:57:43