FlexCelHtmlExport.Export Method
Overloads
- FlexCelHtmlExport.Export(String, String)
- FlexCelHtmlExport.Export(TextWriter, String, TCssInformation)
- FlexCelHtmlExport.Export(String, String, TCssInformation)
- FlexCelHtmlExport.Export(String, String, String)
FlexCelHtmlExport.Export(String, String)
Exports the active sheet of the the associated xls workbook to a file. CSS will be saved internally in the file.
Syntax
Namespace: FlexCel.Render
public void Export(String htmlFileName, String relativeImagePath)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
htmlFileName | String | File name of the html file to be created. | |
relativeImagePath | String | Folder where images will be stored, relative to the main file. If for example htmlFileName is "c:\reports\html\index.htm" and relativeImagePath is "images", images will be saved in folder "c:\reports\html\images". If this parameter is null or empty, images will be saved in the same folder as the html file. |
See also
FlexCelHtmlExport.Export(TextWriter, String, TCssInformation)
Exports the active sheet of the associated xls workbook to a TextWriter. Note that you need to supply the stream for saving the images in the GetImageInformation event (if you want to save the images).
Syntax
Namespace: FlexCel.Render
public void Export(TextWriter html, String fileName, TCssInformation css)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
html | TextWriter | TextWriter where the result will be written. | |
fileName | String | FileName used to generate the supporting files. If you leave it null, no images will be saved as there will not be filename for them. | |
css | TCssInformation | Use this parameter to store all CSS information in an external file. Set it to null if you want to store the CSS inside the HTML file. If you want to share the CSS between multiple files, make sure you pass the same css parameter to all Export calls. |
See also
FlexCelHtmlExport.Export(String, String, TCssInformation)
Exports the active sheet of the the associated xls workbook to a file.
Syntax
Namespace: FlexCel.Render
public void Export(String htmlFileName, String relativeImagePath, TCssInformation css)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
htmlFileName | String | File name of the html file to be created. | |
relativeImagePath | String | Folder where images will be stored, relative to the main file. If for example htmlFileName is "c:\reports\html\index.htm" and relativeImagePath is "images", images will be saved in folder "c:\reports\html\images". If this parameter is null or empty, images will be saved in the same folder as the html file. |
|
css | TCssInformation | Use this parameter to store all CSS information in an external file. Set it to null if you want to store the CSS inside the HTML file. If you want to share the CSS between multiple files, make sure you pass the same css parameter to all Export calls. |
See also
FlexCelHtmlExport.Export(String, String, String)
Exports the active sheet of the the associated xls workbook to a file.
Syntax
Namespace: FlexCel.Render
public void Export(String htmlFileName, String relativeImagePath, String relativeCssFileName)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
htmlFileName | String | File name of the html file to be created. | |
relativeImagePath | String | Folder where images will be stored, relative to the main file. If for example htmlFileName is "c:\reports\html\index.htm" and relativeImagePath is "images", images will be saved in folder "c:\reports\html\images". If this parameter is null or empty, images will be saved in the same folder as the html file. |
|
relativeCssFileName | String | Name for the Css file, with a path relative to the htmlPath. If you set it to null, no css file created and the css will be stored inside each HTML file. If for example htmlpath is "c:\reports" and relativeCssFileName is "css\data.css" the css file will be saved in "c:\reports\css\data.css" |