Click or drag to resize

ExcelResult Class

Current Excel objects (workbook, worksheet and current position) shared by the Excel renderer templates during the report execution. The instance is available from the report with Report.ExcelResult.
Inheritance Hierarchy
SystemObject
  Seal.RendererExcelResult

Namespace: Seal.Renderer
Assembly: SealLibrary (in SealLibrary.dll) Version: 10.2.0.0+da7797057e6d5ef3b02633ee3e36991921c726cb
Syntax
C#
public class ExcelResult

The ExcelResult type exposes the following members.

Constructors
 NameDescription
Public methodExcelResult Creates the Excel result and assigns it to the report
Top
Properties
 NameDescription
Public propertyCurrentCell Cell at the current row and column
Public propertyReport Current report
Top
Methods
 NameDescription
Public methodAddPicture Insert a picture at the current position of the current worksheet and move the current row below it. If a width in pixels is given, the picture is resized with its proportions kept.
Public methodAddWorksheet Add a Worksheet to the current Workbook
Public methodApplyStyle(IXLCell, String) Apply one of the standard Seal styles to a cell
Public methodApplyStyle(IXLRange, String) Apply one of the standard Seal styles to a range
Public methodApplyStyle(IXLStyle, String) Apply one of the standard Seal styles (value, title or total) to a style object. ClosedXML has no named styles, so the attributes are set directly on the cell or the range.
Public methodCleanWorkbook Clean the current Workbook
Public methodCloseHeadlessBrowser Close the headless browser if it has been opened
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetHtmlElementPicture Returns the picture (PNG) of an element of the HTML result of the report (e.g. a map or a gauge). The HTML result is only generated if a view requires it (refer to ReportExecution.checkHTMLPrintResult), null is returned otherwise.
Public methodStatic memberGetPageOrientation Returns the ClosedXML page orientation matching a name
Public methodStatic memberGetPaperSize Returns the ClosedXML paper size matching a name. The names of the EPPlus 'ePaperSize' enumeration stored in existing reports (e.g. 'A4', 'Letter') are mapped to their ClosedXML equivalent ('A4Paper', 'LetterPaper').
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodSetHtmlValue(IXLCell, String) Converts an HTML string to plain text and writes it into a cell. The cell WrapText / alignment / merge must be set by the caller.
Public methodSetHtmlValue(IXLRange, String) Converts an HTML string to plain text and writes it into the first cell of a range (e.g. a merged range). The range WrapText / alignment / merge must be set by the caller.
Public methodSetValue(ResultCell, Boolean, Boolean) Set a ResultCell value at the current row and column
Public methodSetValue(IXLCell, ResultCell, Boolean, Boolean) Set a ResultCell value in an Excel cell
Public methodSetValue(IXLRange, ResultCell, Boolean, Boolean) Set a ResultCell value in the first cell of a range (e.g. a merged range)
Public methodSetValue(Int32, Int32, ResultCell, Boolean, Boolean) Set a ResultCell value at a given row and column
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldStatic memberCellTitleStyle Name of the style applied to a title cell
Public fieldStatic memberCellValueStyle Name of the style applied to a standard cell value
Public fieldStatic memberCellValueTotalStyle Name of the style applied to a total cell value
Public fieldCurrentCol Current column index in the worksheet, starting at 1
Public fieldCurrentRow Current row index in the worksheet, starting at 1
Public fieldHeadlessBrowser Headless browser showing the HTML result of the report, opened at the first picture got with GetHtmlElementPicture()
Public fieldWorkbook Current ClosedXML workbook generating the result file
Public fieldWorksheet Current worksheet being generated
Top
See Also