Posted on: 1/2/2013 9:01:44 AM | Views : 1004

Hi, I am using Infragistics35.WebUI.UltraWebGrid.ExcelExport.v11.1 for exporting to Excel from grid. It is working on my local machine with the default ASP.NET dev server. I use stream to push the excel to the browser. But when moved on production server, it is not working. The prod server uses IIS website. I dont understand why it is not working. Is there anything else to be done? please have a look the code..
In the button click event, i have written:
Infragistics.WebUI.UltraWebGrid.ExcelExport.UltraWebGridExcelExporter exporter = new UltraWebGridExcelExporter();
MemoryStream mstream = new MemoryStream(); exporter.Export(uwgReport, mstream); exporter.Export(uwgReport, mstream);
byte[] byteArray = mstream.ToArray();
mstream.Flush(); mstream.Close();
Response.Clear(); Response.ClearContent(); Response.ClearHeaders();
Response.ContentType = "application/octet-stre ...

Go to the complete details ...