Workbook book = new Workbook(temp); designer.Workbook = book; designer.SetDataSource(data); designer.Process(); book.Save(HttpContext.Current.Response, HttpUtility.UrlEncode(outputName, System.Text.Encoding.UTF8) + extension, ContentDisposition.Attachment, new XlsSaveOptions(SaveFormat.Xlsx)); HttpContext.Current.Response.End();
我这是一个Excel导出的接口,利用aspose的save方法后,在swagger里面看输出是一堆乱码,也没有想要的文件下载,请教一下怎么让他下载而不是输出啊