title: Word OLE Automation - delete first page and manipulate header and footer
body: <p>I am using PHP to start Word Automation and manipulate word documents, but i guess it can be done in all any other language. What i need to do is quite simple, i need to remove the first page and add header and footer.</p>
  
  <p>Here is my code:</p>
  
  <pre><code> $word = new COM('word.applicantion');
   $word-&gt;Documents-&gt;Open('xxx.docx');
   $word-&gt;Documents[1]-&gt;SaveAs($result_file_name, 12);
  </code></pre>
  
  <p>Any samples?</p>