PHP Classes

Add Footer

Recommend this page to a friend!

      HTML to DOC Converter  >  All threads  >  Add Footer  >  (Un) Subscribe thread alerts  
Subject:Add Footer
Summary:Add Footer
Messages:4
Author:sona
Date:2011-02-22 23:37:16
Update:2011-05-06 17:24:12
 

  1. Add Footer   Reply   Report abuse  
Picture of sona sona - 2011-02-22 23:37:16
I am looking to add footer with page numbers. Anyone?

  2. Re: Add Footer   Reply   Report abuse  
Picture of Victor Victor - 2011-05-06 17:24:12 - In reply to message 1 from sona
Sona,

Have you find a way to add a header o footer in the resultant word document?

  3. Re: Add Footer   Reply   Report abuse  
Picture of kyle ryner kyle ryner - 2017-02-17 14:20:57 - In reply to message 2 from Victor

$doc.=<<<EOH
<div class="Section1">

<table id='hrdftrtbl' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td><div style='mso-element:header' id=h1 >
<!-- HEADER-tags -->
<p class=MsoHeader >HEADER</p>
<!-- end HEADER-tags -->
</div>
</td>
<td>
<div style='mso-element:footer' id=f1><span style='position:relative;z-index:-1'>
<!-- FOOTER-tags -->
<p class='MsoFooter'>FOOTERTEXT<span style='mso-tab-count:2'></span>
<span style='mso-field-code: DATE'></span> / <span style='mso-field-code: TIME'></span></p>
</div>
</td>
</tr>
</table>
</div>
EOH;

  4. Re: Add Footer   Reply   Report abuse  
Picture of kyle ryner kyle ryner - 2017-02-17 15:04:23 - In reply to message 3 from kyle ryner
styles



@page Section1 {
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-header: h1;
mso-footer: f1;
}
div.Section1 { page:Section1; }
table#hrdftrtbl
{
margin:0in 0in 0in 900in;
width:1px;
height:1px;
overflow:hidden;
}
p.MsoFooter, li.MsoFooter, div.MsoFooter
{
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
tab-stops:center 3.0in right 6.0in;
font-size:12.0pt;
}