文章出處

 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();
            }
        }

 


文章列表


不含病毒。www.avast.com
全站熱搜
創作者介紹
創作者 大師兄 的頭像
大師兄

IT工程師數位筆記本

大師兄 發表在 痞客邦 留言(0) 人氣()