简体   繁体   中英

exporting to word file( *.doc ) in php

i have one php page which prints some information. Information is a table with some values dynamicaylly printed in table cells.Now instead of sending this page to browser i want the page to be exported to a word file.How can i do it?

In short i have a page A.php . A.php contains a link to B.php . When the link on A.php is clicked i want the file to be exported to ms word file (*.doc). The browser should display the box which says save as or open.

I used to to above thing is jsp by changing some headers. But how can i achieve the above thing in php?

A library to do this specifically, PHPWord.

Give this a shot.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM