c#中eeplus的ExcelPackage的使用需要授权许可证

首先报错

Please set the ExcelPackage.LicenseContext property. See https://epplussoftware.com/developers/licenseexception

添加以下代码即可解决

ExcelPackage.LicenseContext = LicenseContext.NonCommercial;

你可能感兴趣的:(C#,c#)