Hi,
I need to export to Excel special characters like french accent “&” e.tc.
I used this part of code
public void writeResponse(string filename)
{
workbook.Save(filename + “.xls”, Aspose.Excel.SaveType.OpenInExcel, Aspose.Excel.FileFormatType.Excel97, HttpContext.Current.Response);
}
I added
HttpContext.Current.Response.ContentType = “application/vnd.ms-excel”;
HttpContext.Current.Response.Charset = “”;
HttpContext.Current.Response.ContentEncoding = System.Text.Encoding.Unicode;
HttpContext.Current.Response.BinaryWrite(System.Text.Encoding.Unicode.GetPreamble());
HttpContext.Current.Response.AddHeader(“Content-Disposition”, “attachment; filename=” + filename + “.xls”);
But it does not work.
Thanks
Ivan