Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void CreateHeader(IRow row, List<string> header)
- {
- HSSFWorkbook wb = new HSSFWorkbook();
- ISheet sheet = wb.CreateSheet("Modelo");
- ICellStyle style = wb.CreateCellStyle();
- IRow row = row.CreateRow(0);
- for (int i = 0; i < header.Count; i++)
- {
- ICell cell = row.CreateCell(i);
- cell.SetCellValue(header[i]);
- cell.CellStyle = style;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement