Answer the question
In order to leave comments, you need to log in
How to expand the margins of a page converted from html to doc?
I use this simple code:
header('Content-type: application/vnd.ms-word');
header('Content-Disposition: attachment;Filename=test.doc');
print "<html>
<meta http-equiv=\'Content-Type\' content=\'text/html; charset=utf-8\'>
<body>";
print "hello";
print "</body></html>";
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question