Interface IExcelHtmlTableExporter
Exports an Excel
Namespace: OfficeOpenXml.Export.HtmlExport.Interfaces
Assembly: EPPlus.dll
Syntax
public interface IExcelHtmlTableExporter
Properties
Settings
Settings for the html export
Declaration
HtmlTableExportSettings Settings { get; }
Property Value
Type | Description |
---|---|
Html |
Methods
GetCssString()
Exports an Excel
Declaration
string GetCssString()
Returns
Type | Description |
---|---|
System. |
Cascading style sheet for the exported range |
GetCssStringAsync()
Exports the css part of an Excel
Declaration
Task<string> GetCssStringAsync()
Returns
Type | Description |
---|---|
System. |
A html table |
GetHtmlString()
Exports an Excel
Declaration
string GetHtmlString()
Returns
Type | Description |
---|---|
System. |
A html table |
GetHtmlStringAsync()
Exports an Excel
Declaration
Task<string> GetHtmlStringAsync()
Returns
Type | Description |
---|---|
System. |
A html table |
GetSinglePage(String)
Renders both the Html and the Css to a single page.
Declaration
string GetSinglePage(string htmlDocument = "<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<style type=\"text/css\">\r\n{1}</style></head>\r\n<body>\r\n{0}</body>\r\n</html>")
Parameters
Type | Name | Description |
---|---|---|
System. |
htmlDocument | The html string where to insert the html and the css. The Html will be inserted in string parameter {0} and the Css will be inserted in parameter {1}. |
Returns
Type | Description |
---|---|
System. |
The html document |
GetSinglePageAsync(String)
Renders the first range of the Html and the Css to a single page.
Declaration
Task<string> GetSinglePageAsync(string htmlDocument = "<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<style type=\"text/css\">\r\n{1}</style></head>\r\n<body>\r\n{0}</body>\r\n</html>")
Parameters
Type | Name | Description |
---|---|---|
System. |
htmlDocument | The html string where to insert the html and the css. The Html will be inserted in string parameter {0} and the Css will be inserted in parameter {1}. |
Returns
Type | Description |
---|---|
System. |
The html document |
RenderCss(Stream)
Exports the css part of the html export.
Declaration
void RenderCss(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System. |
stream | The stream to write the css to. |
Exceptions
Type | Condition |
---|---|
System. |
RenderCssAsync(Stream)
Exports the css part of an Excel
Declaration
Task RenderCssAsync(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System. |
stream |
Returns
Type | Description |
---|---|
System. |
A html table |
RenderHtml(Stream)
Exports an Excel
Declaration
void RenderHtml(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System. |
stream | The stream to write to |
RenderHtmlAsync(Stream)
Exports an Excel
Declaration
Task RenderHtmlAsync(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System. |
stream | The stream to write to |
Returns
Type | Description |
---|---|
System. |
A html table |