using code like
using OfficeOpenXml; // namespace for the ExcelPackage assembly … FileInfo newFile = new FileInfo(@\"C:\\mynewfile.xlsx\"); using (ExcelPackag
if your project is .net core edit your project file then add
and in your startup.cs
add
System.Text.Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);