Class ExcelExternalWorkbook¶
Namespace: OfficeOpenXml.ExternalReferences
Assembly: EPPlus.dll
Represents an external workbook.
Inheritance¶
object ← ExcelExternalLink ← ExcelExternalWorkbook
Inherited Members¶
ExcelExternalLink.As
ExcelExternalLink.ErrorLog
ExcelExternalLink.ExternalLinkType
ExcelExternalLink.Index
ExcelExternalLink.ToString()
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()
Properties¶
CacheStatus¶
The status of the cache. If the UpdateCachemethod fails this status is set to Failed If cache status is set to NotUpdated, the cache will be updated when the package is saved. UpdateCache ErrorLog
Property Value¶
CachedNames¶
A collection of cached defined names in the external workbook
Property Value¶
ExcelExternalNamedItemCollection<ExcelExternalDefinedName>
CachedWorksheets¶
A collection of cached worksheets in the external workbook
Property Value¶
ExcelExternalNamedItemCollection<ExcelExternalWorksheet>
ExternalLinkType¶
Sets the external link type
Property Value¶
ExternalLinkUri¶
The Uri to the external workbook. This property will be set by the File property on save, if it has been set.
Property Value¶
Uri
File¶
If the external reference is a file in the filesystem
Property Value¶
IsPathRelative¶
If true, sets the path to the workbook as a relative path on Load, if the link is on the same drive. Otherwise set it as an absolute path. If set to false, the path will always be saved as an absolute path. If the file path is relative and the file can not be found, the file path will not be updated. Load File
Property Value¶
Package¶
A reference to the external package, it it has been loaded. Load
Property Value¶
Methods¶
Load()¶
Tries to Loads the external package using the External Uri into the Package property
Returns¶
True if the load succeeded, otherwise false. If false, see ErrorLog
Load(FileInfo)¶
Tries to Loads the external package using the External Uri into the Package property
Parameters¶
packageFile FileInfo
Returns¶
True if the load succeeded, otherwise false. If false, see ErrorLog
Load(ExcelPackage)¶
Tries to Loads the external package using the External Uri into the Package property
Parameters¶
package ExcelPackage
Returns¶
True if the load succeeded, otherwise false. If false, see ErrorLog and CacheStatus of each ExcelExternalWorkbook
ToString()¶
String representation
Returns¶
UpdateCache()¶
Updates the external reference cache for the external workbook. To be used a Package must be loaded via the Load method. CacheStatus ErrorLog
Returns¶
True if the update was successful otherwise false