Click here to Skip to main content
15,920,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a php page with some data.I want to display this php page data in word document with proper formatting.

I have also used these two lines in my php code:
C#
header("Content-type: application/vnd.ms-word");
header("Content-Disposition: attachment;Filename=GenerateTest.doc");


After applying ,page is opened in word document. but page size is very large. I want to perform some editing with page and page data(css).
Please solve this problem as soon as possible.
If there is any other way to perform this activity then please let me know.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900