Quantcast
Channel: NPOI
Viewing all articles
Browse latest Browse all 1621

Created Unassigned: XSSF中 ISheet.SetMargin导致文件损坏 [12631]

$
0
0
```
var _workbook = new XSSFWorkbook();
var _sheet = _workbook.CreateSheet();

// cause file damage
//_sheet.SetMargin(MarginType.TopMargin, 0);

var _row=_sheet.CreateRow(0);
_row.CreateCell(0).SetCellValue(DateTime.Now.ToShortDateString());
using (var fs = new FileStream("out.xlsx", FileMode.Create))
{
_workbook.Write(fs);
}
```

Viewing all articles
Browse latest Browse all 1621

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>