Created
June 28, 2013 16:21
-
-
Save leandrocustodio/5885972 to your computer and use it in GitHub Desktop.
Confirgurações do HttpContext para gerar um arquivo do Excel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HttpContext.Response.ContentType = "application/vnd.ms-excel"; | |
HttpContext.Response.AddHeader("content-disposition", "attachment;filename=exportar.xls"); | |
HttpContext.Response.Charset = "utf-8"; | |
HttpContext.Response.ContentEncoding = System.Text.Encoding.GetEncoding("windows-1250"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment