Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 534 Bytes

README.md

File metadata and controls

36 lines (28 loc) · 534 Bytes

NPOI.Extensions.Web

FileResult

  • XSSFFileResult
  • SXSSFFileResult
  • HSSFFileResult
  • XWPFFileResult

Sample Code

[HttpGet]
public ActionResult Get()
{
    XSSFWorkbook workbook = new XSSFWorkbook();
    ISheet sheet1 = workbook.CreateSheet("Sheet1");
    return new XSSFFileResult(workbook, "test1.xlsx");
}

DataSet/DataTable Support

  • IWorkbook.ToDataSet()
  • ISheet.ToDataTable()

Sample Code

var dt=sheet1.ToDataTable(false);

Planning

TempStorage Support

  • Azure Bloc
  • AWS S3
  • Local File