分为收费版和免费版。 使用方法 publicvoidTestSpireOffice() { stringsourceFile=@"D:\sourceFile.xlsx"; stringtargetFile=@"D:\targetFile.xlsx"; Workbookworkbook=newWorkbook(); workbook.LoadFromFile(sourceFile);//加载Excel工作簿 Worksheetsheet1=workbook.Worksheets["Sheet1"];//读取工作簿中名为"Sheet...
首先定义一个实体类,例如: public class OutputData { public string Address { get; set; } public int Title { get; set; } public int Description { get; set; } public int Keywords { get; set; } public int Content { get; set; } public int Score { get; set; } } 然后直接传一个 Ou...