using MiniExcelLibs;
using MiniExcelLibs.Attributes;
var appBasePath = Environment.CurrentDirectory;
var importFilePath = Path.Combine(appBasePath, "file", "importImg.xlsx");
var result = Util.XlsxImg.Get(importFilePath);
var obj = MiniExcel.Query<ImportExcelEntity>(importFilePath);
Console.WriteLine("ok");
Util.XlsxImg.CleanCache();
class ImportExcelEntity
{
[ExcelColumnIndex("A")]
public string Name { get; set; }
[ExcelColumnIndex("B")]
public string Img { get; set; }
}
最后修改:2024 年 06 月 11 日
© 允许规范转载
此处评论已关闭