读者朋友:
您好,你可以接着通过下面代码把导出的excel文件下载到客户端
FileInfo info = new FileInfo(excel文件路径);
long fileSize = info.Length;
Response.Clear();
Response.ContentType = "application/x-zip-compressed";
Response.AddHeader("Content-Disposition", "attachment;filename="+ excel文件路径);
Response.AddHeader("Content-Length", fileSize.ToString());
Response.TransmitFile(excel文件路径, 0, fileSize);
Response.Flush();
Response.Close();