? ? ?ICellStyle style1 = workbook.CreateCellStyle();
? ? ? style1.BorderRight = NPOI.SS.UserModel.BorderStyle.Thin;
? ? ? style1.BorderLeft = NPOI.SS.UserModel.BorderStyle.Thin;
? ? ? style1.BorderTop = NPOI.SS.UserModel.BorderStyle.Thin;
? ? ? style1.BorderBottom = NPOI.SS.UserModel.BorderStyle.Thin;
? ? ? IFont font = workbook.CreateFont();
? ? ? font = workbook.CreateFont();
? ? ? font.FontHeightInPoints = 12;
? ? ? font.Boldweight = (short)NPOI.SS.UserModel.FontBoldWeight.Bold;
? ? ? font.FontName = "Wingdings 2";
? ? ? style1.SetFont(font);//HEAD 樣式
? ? ? row = sheet.GetRow(22);
? ? ? cell = row.CreateCell(2);
? ? ? cell.SetCellValue("\u0052 是");//checkbox u0052勾選? ? ? ? ? ? ? ? //u00A3代表未打鉤的選擇框
? ? ? cell.CellStyle = style1;
? ? ? //Wingdings 2
轉(zhuǎn)載記錄