Hi..Have you created a program using ms word? i want my system display the records in ms word...when you click the submit button,ms word will open and you will see all the records saved from the database..What are the codes i will used.?tnx in advance..
takeshi
0
Junior Poster in Training
Recommended Answers
Jump to PostYou may export all data in ms word with the below code:
<?php $vExcelFileName="export". ".doc"; //replace your file name from here. header("Content-type: application/x-ms-download"); //#-- build header to download the word file header("Content-Disposition: attachment; filename=$vExcelFileName"); header('Cache-Control: public'); echo "hai"; ?>
The above code is tested and export the …
Jump to Postthese all are posted "//" between is comment that will give u the information that where u can made any change in the script and also in the change file name section you could change your file name with your once that i will give it "export" in my code. …
All 6 Replies
hemgoyal_1990
5
Junior Poster
takeshi
0
Junior Poster in Training
hemgoyal_1990
5
Junior Poster
hemgoyal_1990
5
Junior Poster
takeshi
0
Junior Poster in Training
takeshi
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.