title: Office HTML Word header
body: <p>I am generating "Word document" with a header on the first page as HTML code. <code>&lt;style&gt;</code> 
  tag contains:</p>
  
  <pre><code>@page Section {
      size:8.5in 11.0in;
      margin: 0.7in 0.9in 0.7in 0.9in;
      mso-header-margin: 0.0in;
      mso-footer-margin: 0.0in;
      mso-title-page: yes;
      mso-first-header: fh1;
      mso-paper-source: 0;
  }
  div.Section {
      page: Section;
  }
  </code></pre>
  
  <p>and <code>&lt;body&gt;</code>:</p>
  
  <pre><code>&lt;div class="Section" style="font-family: Verdana, sans-serif;"&gt;
      &lt;![if supportFields]&gt;
          &lt;div style="mso-element:header" id="fh1"&gt;
              &lt;p class="MsoHeader"&gt;
                  header
              &lt;/p&gt;
          &lt;/div&gt;
      &lt;![endif]&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>It shows the "header" text both in header and in the document's main body. The resources (http://techsynapse.blogspot.com/2007/03/generating-word-document-dynamically.html and <a href="http://www.pbdr.com/ostips/wordfoot.htm" rel="noreferrer">http://www.pbdr.com/ostips/wordfoot.htm</a>) I have found say that there is no way of avoiding this effect without using an additional header file which is not an option for me.</p>
  
  <p>And there goes my question: do you know any work-around for that problem? How can I hide the occurence of the header in main document but leave it in its place at the top of the page? Thanks in advance for any piece of advice.</p>