Spread 8.0 Documentation
SSExportToHTMLEx Function
Support Options
DLL Reference > DLL Functions > SSExportToHTMLEx Function

Glossary Item Box

SSExportToHTMLEx Function


See Also    ActiveX

Applies To

fpSpread DLL control

Description

Exports the sheet to an HTML file using the style settings from a CSS file.

Syntax

C

BOOL SSExportToHTMLEx(HWND hWnd, LPCTSTR lpszFileName, BOOL bAppendFlag, LPCTSTR lpszLogFile, LPCTSTR lpszTitle, LPCTSTR lpszCssFile, LPCTSTR lpszTableClass, LPCTSTR lpszTableRowClass, LPCTSTR lpszTableDefinitionClass, LPCTSTR lpszTableHeaderClass);

C++

BOOL TSpread::ExportToHTMLEx(LPCTSTR lpszFileName, BOOL bAppendFlag, LPCTSTR lpszLogFile, LPCTSTR lpszTitle, LPCTSTR lpszCssFile, LPCTSTR lpszTableClass, LPCTSTR lpszTableRowClass, LPCTSTR lpszTableDefinitionClass, LPCTSTR lpszTableHeaderClass);

Parameters

The following parameters are available:

Parameter Description
hWnd Window handle of the fpSpread control
lpszFileName Path and file name of HTML file to create
bAppendFlag Set to TRUE to append export at the end of an existing file; set to FALSE to overwrite an existing file or to create a new file.
lpszLogFile (Obsolete. Any string provided for this parameter is ignored.)
lpszTitle Title of the HTML page
lpszCssFile File that contains cascading style sheet settings
lpszTableClass Class name of the table
lpszTableRowClass Class name of the tr item in the css file
lpszTableDefinitionClass Class name of the td item in the css file
lpszTableHeaderClass Class name of the th item in the css file

Remarks

This function is applied to the current sheet setting unless you first call the SSSetSheet function to specify the sheet for which you are calling this function.

Use this function to export the portion of the sheet that contains data to an HTML file. The export creates an HTML file that provides the sheet's data as an HTML table. The tags used to create the HTML table conform to HTML 3.2 (or later) guidelines.

By default, HTML files created using Spread or the Spread Designer have the extension .HTM. However, you can use any extension.

If you would rather export a range in the sheet to an HTML table rather than exporting the entire sheet, call the SSExportRangeToHTMLEx function.

Tip: You might want to save your sheet as a Spread (.SS8) file in addition to exporting it to HTML so that you can open the Spread (.SS8) file for future modifications.

The following table summarizes the formats to which you can save data:

To Save To . . . Use Function
Binary file (proprietary format) SSSaveToFile
Tab-delimited file SSSaveTabFile or SSSaveTabFileU
Delimited file (offers user-defined delimiters) SSExportToTextFile or SSExportRangeToTextFile
or SSExportToTextFileU or SSExportRangeToTextFileU
Excel-formatted file SSExportExcelBook or SSExportToExcel
HTML file SSExportToHTML or SSExportRangeToHTML
XML file SSExportToXML or SSExportRangeToXML
XML buffer SSExportToXMLBuffer or SSExportRangeToXMLBuffer
An array SSGetArray

For instructions and more information about exporting HTML files, see Exporting to an HTML File and HTML File Export (online PDF manual). HTML File Export lists and describes the method in which Spread property settings are interpreted in the HTML table created in the exported file.

Return Value

TRUE if the function completes successfully; FALSE otherwise.

See Also

Exporting to an HTML File
HTML File Export (online PDF manual)

SSExportRangeToHTML, SSSetSheet functions

ActiveX Correspondence

ExportToHTMLEx method

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.