EPPlus error reading file

前端 未结 2 587
庸人自扰
庸人自扰 2021-01-29 15:01

using code like

using OfficeOpenXml;  // namespace for the ExcelPackage assembly
…
FileInfo newFile = new FileInfo(@\"C:\\mynewfile.xlsx\"); 
using (ExcelPackag         


        
2条回答
  •  盖世英雄少女心
    2021-01-29 15:17

    if your project is .net core edit your project file then add

    
    
    
    

    and in your startup.cs

    add

    System.Text.Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
    

提交回复
热议问题