title: Export LinqPAD results to Excel file without the rowcount metadata
body: <p>I was trying to write to an excel file just the resultset from a query but I keep getting the header column with the row count, which is messing up the subsequent data processing I need to do.  I could go in the exported file and delete the first row, but it would be much better if I could export a dataset without the header row.</p>
  
  <p>Here's my hack, I wonder if anyone has a better way to do it. I am taking the generated html and using regex to yank out the header row:</p>
  
  <pre><code>public string DumpToHtmlString&lt;T&gt;(T objectToSerialize, string filePath )
      {
          string strHTML = "", outpuWithoutHeader ="";
          try
          {
              var writer = LINQPad.Util.CreateXhtmlWriter(true);
              writer.Write(objectToSerialize);
              strHTML = writer.ToString();
              outpuWithoutHeader = Regex.Replace(strHTML, "&lt;tr&gt;&lt;td class=\"typeheader\"((\\s*?.*?)*?)&lt;\\/(tr|TR)&gt;", "", RegexOptions.Multiline);
              System.IO.File.WriteAllText(filePath, outpuWithoutHeader );
  
          }
          catch (Exception exc)
          {
              Debug.Assert(false, "Investigate why ?" + exc);
          }
          return outpuWithoutHeader;
      }
  </code></pre>