How to set the paper format when exporting word files with php?

WBOY
Release: 2016-10-22 00:14:18
Original
1458 people have browsed it

header('Content-type: application/octet-stream'); header("Content-Disposition: attachment; filename=\"路浩内部电话表.doc\"");
Copy after login
Copy after login

?>

    电话表  
内部电话表
部门 职务 姓名 分机 直拨号 邮箱
流程部 代理人 张三 1827 0302 7129@qq.com
Copy after login
Copy after login

The effect after running the exported file is as shown below:
How to set the paper format when exporting word files with php?
Now I want the following effect, that is, set it to paper format. What should be done?
How to set the paper format when exporting word files with php?

Reply content:

header('Content-type: application/octet-stream'); header("Content-Disposition: attachment; filename=\"路浩内部电话表.doc\"");
Copy after login
Copy after login

?>

    电话表  
内部电话表
部门 职务 姓名 分机 直拨号 邮箱
流程部 代理人 张三 1827 0302 7129@qq.com
Copy after login
Copy after login

The effect after running the exported file is as shown below:
How to set the paper format when exporting word files with php?
Now I want the following effect, that is, set it to paper format. What should be done?
How to set the paper format when exporting word files with php?

This is an empty doc template. All forms and other contents are written by yourself?
This seems to be able to make a doc template. Then write the variable name in the content of the table and then write the data. You can check for details

How to set the paper format when exporting word files with php?

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!