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; }
}
下载地址:https://gitee.com/ktith/study/releases