Excel not opening .xls made from C# StringBuilder
<p>The following code was written several months ago and tested perfectly, with that funny little warning message in Excel.  Now, though, after the C# code runs without errors and the browser downloads the exported .xls file, the Excel application opens but displays nothing, as if it didn't open the exported file.  Can anyone see problems with this code or know why Excel suddenly wouldn't open this document?  Many thanks in advance!</p>

<p>The C# Code:</p>

<pre><code>[HttpGet]
public void DownloadReport()
{
    string filename = "ReportExport";

    //Report source data organized here

    StringBuilder sb = new StringBuilder();
    sb.Append("&lt;table&gt;");
    sb.Append("&lt;tr&gt;");
    foreach (DataColumn column in reportData.Columns)
    {
        sb.Append("&lt;th&gt;");
        sb.Append(column.ColumnName);
        sb.Append("&lt;/th&gt;");
    }
    sb.Append("&lt;/tr&gt;");
    foreach (DataRow row in reportData.Rows)
    {
        sb.Append("&lt;tr&gt;");
        foreach (DataColumn column in reportData.Columns)
        {
            sb.Append("&lt;td&gt;");
            if (row[column] == null)
            {
                sb.Append("");
            }
            else
            {
                sb.Append(row[column]);
            }
            sb.Append("&lt;/td&gt;");
        }
        sb.Append("&lt;/tr&gt;");
    }
    sb.Append("&lt;/table&gt;");
    Response.Clear();
    Response.Buffer = true;
    Response.AddHeader("content-disposition", "attachment;filename=" + fileName + ".xls");
    Response.Charset = "";
    Response.ContentType = "application/vnd.ms-excel";
    string style = @"&lt;style&gt; .textmode { } &lt;/style&gt;";
    Response.Write(style);
    Response.Output.Write(sb.ToString());
    Response.Flush();
    Response.End();
}
</code></pre>