Class ExcelPackageConfiguration
Parameters for configuring the ExcelPackage class before usage
Inherited Members
Namespace: OfficeOpenXml.Configuration
Assembly: EPPlus.dll
Syntax
public class ExcelPackageConfiguration
Properties
Configuration
A IConfiguration instance that will be used by EPPlus to read license information/key
Declaration
public IConfiguration Configuration { get; set; }
Property Value
| Type | Description |
|---|---|
| IConfiguration |
JsonConfigBasePath
Path of the directory where the json configuration file is located. Default value is the path returned from GetCurrentDirectory()
Declaration
public string JsonConfigBasePath { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
JsonConfigFileName
File name of the json configuration file. Default value is appsettings.json
Declaration
public string JsonConfigFileName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SuppressInitializationExceptions
If set to true errors/exceptions that occurs during initialization of the ExcelPackage class will be suppressed and logged in InitializationErrors.
If set to false these Exceptions will be rethrown.
Default value of this property is false.
Declaration
public bool SuppressInitializationExceptions { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
Reset()
Resets configuration to its default values
Declaration
public void Reset()