using Aspose.Cells;
var license = new License();
var file = new FileStream("license.lic", FileMode.Open);
//引用授权文件
license.SetLicense(file);
var excel = new Workbook();
var sheet = excel.Worksheets.Add("test");
sheet.Cells["A1"].Value = "hi";
excel.Save("./test.xlsx", SaveFormat.Xlsx);