StringBuilder xmlStrBuilder = new StringBuilder(); xmlStrBuilder.Append(""); xmlStrBuilder.Append("<?mso-application progid=\"Excel.Sheet\"????>"); xmlStrBuilder.Append("<workbook xmlns="\" hold=" /> xmlStrBuilder.Append(" xmlns:o="\" xmlns:x="\"urn:schemas-microsoft-com:office:excel\"");<br" mode="hold" /> xmlStrBuilder.Append(" xmlns:ss=\"urn:schemas-microsoft-com:office:spreadsheet\""); xmlStrBuilder.Append(" xmlns:html=\"http://www.w3.org/TR/REC-html40\">"); ------------- ------------- xmlStrBuilder.Append("<worksheet>"); response.Clear(); response.AppendHeader("Content-Type", "application/vnd.ms-excel"); response.AppendHeader("Content-disposition", "attachment; filename=" + fileName); response.Write(xmlStrBuilder); response.Flush(); response.End(); excelXml.Length = 0; excelXml.Capacity = 0;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)