Class ExcelExternalWorkbook
Inherited Members
Namespace: OfficeOpenXml.ExternalReferences
Assembly: EPPlus.dll
Syntax
public class ExcelExternalWorkbook : ExcelExternalLink
Properties
CachedNames
A collection of cached defined names in the external workbook
Declaration
public ExcelExternalNamedItemCollection<ExcelExternalDefinedName> CachedNames { get; }
Property Value
Type | Description |
---|---|
Excel |
CachedWorksheets
A collection of cached worksheets in the external workbook
Declaration
public ExcelExternalNamedItemCollection<ExcelExternalWorksheet> CachedWorksheets { get; }
Property Value
Type | Description |
---|---|
Excel |
CacheStatus
The status of the cache. If the Update
Declaration
public eExternalWorkbookCacheStatus CacheStatus { get; }
Property Value
Type | Description |
---|---|
e |
ExternalLinkType
Declaration
public override eExternalLinkType ExternalLinkType { get; }
Property Value
Type | Description |
---|---|
e |
Overrides
ExternalLinkUri
The Uri to the external workbook. This property will be set by the File property on save, if it has been set.
Declaration
public Uri ExternalLinkUri { get; set; }
Property Value
Type | Description |
---|---|
System. |
File
If the external reference is a file in the filesystem
Declaration
public FileInfo File { get; set; }
Property Value
Type | Description |
---|---|
System. |
Package
A reference to the external package, it it has been loaded. Load()
Declaration
public ExcelPackage Package { get; }
Property Value
Type | Description |
---|---|
Excel |
Methods
Load()
Tries to Loads the external package using the External Uri into the Package property
Declaration
public bool Load()
Returns
Type | Description |
---|---|
System. |
True if the load succeeded, otherwise false. If false, see Error |
Load(ExcelPackage)
Tries to Loads the external package using the External Uri into the Package property
Declaration
public bool Load(ExcelPackage package)
Parameters
Type | Name | Description |
---|---|---|
Excel |
package |
Returns
Type | Description |
---|---|
System. |
True if the load succeeded, otherwise false. If false, see Error |
Load(FileInfo)
Tries to Loads the external package using the External Uri into the Package property
Declaration
public bool Load(FileInfo packageFile)
Parameters
Type | Name | Description |
---|---|---|
System. |
packageFile |
Returns
Type | Description |
---|---|
System. |
True if the load succeeded, otherwise false. If false, see Error |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
Overrides
UpdateCache()
Updates the external reference cache for the external workbook. To be used a Package must be loaded via the Load() method.
Cache
Declaration
public bool UpdateCache()
Returns
Type | Description |
---|---|
System. |
True if the update was successful otherwise false |