public void Export() { HttpResponse Response = System.Web.HttpContext.Current.Response; // Load your source workbook Workbook workbook = new Workbook(); // Creating a Workbook object var sheet = workbook.Worksheets[]; sheet.Cells[, ].PutValue(); if (Response != null) { // Save in Xlsx format workbook.Save(Response, "test.xlsx", ContentDisposition.Attachment, new OoxmlSaveOptions()); Response.End(); } }
版权声明:除特别声明外,本站所有文章皆是本站原创,转载请以超链接形式注明出处!