苏打气泡水的博客 - 获取图像
type: channel
link: https://sdqps.top/index.php/tag/%E8%8E%B7%E5%8F%96%E5%9B%BE%E5%83%8F/
items: C#原生获取Excel.xlsx文件内图像数据

C#原生获取Excel.xlsx文件内图像数据
type: item
date: 2024-06-11T17:38:54+08:00
description: 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