I am writing the data to the output browser using Response.write(some byte arrary)
Response.ContentType = "application/ms-excel";
Response.ContentEncoding = System.Text.Encoding.Default;
Response.OutputStream.Write(report, 0, report.Length);
Response.Flush();
Response.Close();
In my file I am having ANSI characters I need to write the information in the format ANSI when i open my excel file. Do we need to add anything.
I have encoded it to ANSI but its not working.