I'm trying export out using C1 excel with a prompt to the user where to save the file. However I have tried the following codes but it doesn't seems to work.
Response.Clear();
Response.ContentType = "application/vnd.ms-excel";
Response.AppendHeader("Content-Disposition","attachment;filename=CategoryReport.xls");
System.IO.MemoryStream ms = new System.IO.MemoryStream();
xbook.Save(ms, C1.C1Excel.FileFormat.Biff8);
ms.WriteTo(Response.OutputStream);
ms.Close();
ms.Dispose();
xbook.Dispose();
Please help =)