private void LoadExcelData(string xslXml, string header) { UTF8Encoding encoder = new UTF8Encoding(); byte[] arrReportContaint = encoder.GetBytes(xslXml); Response.ClearContent(); Response.ClearHeaders(); Response.Buffer = true; Response.ContentType = ContentTypeExcel; Response.Charset = string.Empty; Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.AddHeader(ContentDisposition, header); Response.BinaryWrite(arrReportContaint); Response.Flush(); Response.End(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)