Styles missing in StreamWriter
<p>I see that when I use <code>StreamWriter</code> to write html to excel file, it is missing some styles like background color. Is it possible to get styles using <code>StreamWriter</code>? If Not, Can I use any other <code>StreamWriter</code>?</p>

<pre><code>StringWriter _writer = new StringWriter();
HttpContext.Current.Server.Execute("VAMReport.aspx", _writer);
String html = _writer.ToString();
fullpath = directoryPath + @"\" + fileName;
StreamWriter SW;            
SW = File.CreateText(fullpath);
SW.WriteLine(html.ToString());
SW.Close();
</code></pre>
