title: html to excel - print row 1 on every page
body: <p>We are using HTML/XML/CSS to export a table to excel 2007.</p>
  
  <p>I have the below code setup, which when the HTML page loads, it then exports the data to Excel.  The first two rows are set as frozen panes, which is great while viewing the document, but does not print those rows on every printed page.  All of my page data is in table    tr-th   tr-td   format.</p>
  
  <p>the  block towads the bottom (i have read) is supposed to make the first row print on every printed page... but it is not.</p>
  
  <p>I have also read that the .... section, should print the first rows on every page, but this does not seem to work either.</p>
  
  <p>Any suggestions, ideas or answers are appreciated!!</p>
  
  <pre><code>    header("Cache-Control: public, must-revalidate");
      header("Pragma: no-cache");
      header ('Content-type: application/vnd.ms-excel');
      header ('Content-Disposition: attachment; filename=StoreVsCompany.xls');
  
      echo '
      &lt;html xmlns:x="urn:schemas-microsoft-com:office:excel"&gt;
      &lt;head&gt;            
          &lt;!--[if gte mso 9]&gt;
          &lt;xml&gt;
              &lt;x:ExcelWorkbook&gt;
                  &lt;x:ExcelWorksheets&gt;
                      &lt;x:ExcelWorksheet&gt;
                          &lt;x:Name&gt;VendorAgendaSummary&lt;/x:Name&gt;
                          &lt;x:WorksheetOptions&gt;
                              &lt;x:PageSetup&gt;         
                                  &lt;x:Layout x:Orientation="Portrait"/&gt;         
                                  &lt;x:Header x:Margin="0.3"/&gt;         
                                  &lt;x:Footer x:Margin="0.3"/&gt;         
                                  &lt;x:PageMargins x:Bottom="0.75" x:Left="0.5" x:Right="0.5" x:Top="0.75"/&gt;        
                              &lt;/x:PageSetup&gt;        
                              &lt;x:FitToPage/&gt;  
                              &lt;x:Print&gt;         
                                  &lt;x:FitHeight&gt;100&lt;/x:FitHeight&gt;         
                                  &lt;x:ValidPrinterInfo/&gt;         
                                  &lt;x:HorizontalResolution&gt;600&lt;/x:HorizontalResolution&gt;         
                                  &lt;x:VerticalResolution&gt;600&lt;/x:VerticalResolution&gt;        
                              &lt;/x:Print&gt;
                              &lt;x:FreezePanes/&gt;
                              &lt;x:FrozenNoSplit/&gt;
                              &lt;x:SplitHorizontal&gt;2&lt;/x:SplitHorizontal&gt;
                              &lt;x:TopRowBottomPane&gt;2&lt;/x:TopRowBottomPane&gt;
                              &lt;x:SplitVertical&gt;2&lt;/x:SplitVertical&gt;
                              &lt;x:LeftColumnRightPane&gt;2&lt;/x:LeftColumnRightPane&gt;
                              &lt;x:ActivePane&gt;0&lt;/x:ActivePane&gt;
                              &lt;x:Panes&gt;
                                  &lt;x:Pane&gt;
                                     &lt;x:Number&gt;3&lt;/x:Number&gt;
                                  &lt;/x:Pane&gt;
                                  &lt;x:Pane&gt;
                                     &lt;x:Number&gt;1&lt;/x:Number&gt;
                                  &lt;/x:Pane&gt;
                                  &lt;x:Pane&gt;
                                     &lt;x:Number&gt;2&lt;/x:Number&gt;
                                  &lt;/x:Pane&gt;
                                  &lt;x:Pane&gt;
                                     &lt;x:Number&gt;0&lt;/x:Number&gt;
                                  &lt;x:ActiveRow&gt;0&lt;/x:ActiveRow&gt;
                                  &lt;x:ActiveCol&gt;1&lt;/x:ActiveCol&gt;
                                  &lt;/x:Pane&gt;
                              &lt;/x:Panes&gt;
                          &lt;/x:WorksheetOptions&gt;
                      &lt;/x:ExcelWorksheet&gt;
                  &lt;/x:ExcelWorksheets&gt;
              &lt;/x:ExcelWorkbook&gt;
              &lt;x:ExcelName&gt; 
                  &lt;x:Name&gt;Print_Titles&lt;/x:Name&gt; 
                  &lt;x:SheetIndex&gt;1&lt;/x:SheetIndex&gt; 
                  &lt;x:Formula&gt;=\'strWorkBookName\'!$1:$1&lt;/x:Formula&gt; 
              &lt;/x:ExcelName&gt;
          &lt;/xml&gt;
          &lt;![endif]--&gt;
      &lt;/head&gt;';   
  </code></pre>