#region
public static void ExportToExcelFromstring(string fileName, HttpResponse response, string str)
{
response.Clear();
response.AddHeader("content-disposition", "attachment;filename=" + fileName + ".xls");
response.Charset = "";
response.Cache.SetCacheability(HttpCacheability.NoCache);
response.ContentType = "application/vnd.xls";
response.Write(str);
response.End();
}
#endregion
No comments:
Post a Comment