2using NPOI.SS.UserModel;
3using NPOI.XSSF.UserModel;
11 string text = CorePath.packageCore +
"Lang/Template/";
12 string text2 =
"sample.xlsx";
13 XSSFWorkbook xSSFWorkbook =
new XSSFWorkbook();
15 using FileStream stream =
new FileStream(text + text2, FileMode.Create);
16 xSSFWorkbook.Write(stream);
22 return row.GetCell(x) ?? row.CreateCell(x);
25 public static void WriteCell(
int x,
int y,
string value)
27 GetCell(x, y).SetCellValue(value);
30 public static void WriteCell(
int x,
int y,
double value)
32 GetCell(x, y).SetCellValue(value);
static ISheet currentSheet
static void WriteCell(int x, int y, double value)
static ICell GetCell(int x, int y)
static void WriteCell(int x, int y, string value)