fix: update license context setting for Excel packages

This commit is contained in:
2025-12-17 11:33:40 +03:30
parent 84fb29c8c8
commit be8deef167
10 changed files with 20 additions and 12 deletions

View File

@@ -17,7 +17,7 @@ public class ExcelGenerator
{
public ExcelGenerator()
{
ExcelPackage.LicenseContext = LicenseContext.NonCommercial;
OfficeOpenXml.ExcelPackage.License.SetNonCommercialOrganization("Gozareshgir Noncommercial organization");
}
public static byte[] GenerateExcel<T>(List<T> obj, string date = "") where T : class
{