//Set appropriate ContentType. Response.ContentType = "Application/xls"; string fileh = MapPath("myFile.xls"); //Write the file to the output stream. Response.WriteFile(file);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)