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[0];
            sheet.Cells[0, 0].PutValue(1);
            if (Response != null)
            {
                // Save in Xlsx format
                workbook.Save(Response, "test.xlsx", ContentDisposition.Attachment, new OoxmlSaveOptions());
                Response.End();
            }
        }

 

相关文章:

  • 2022-12-23
  • 2022-01-26
  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
  • 2021-06-02
猜你喜欢
  • 2022-12-23
  • 2022-01-28
  • 2022-12-23
  • 2022-12-23
  • 2021-08-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案