1718097230459.png

Snipaste_2024-06-11_16-59-15.png

Snipaste_2024-06-11_16-59-30.png

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

1718097584065.png

最后修改:2024 年 06 月 11 日
如果觉得我的文章对你有用,请随意赞赏