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

Glossary Item Box

SSExportToHTML Function


See Also    ActiveX

Applies To

fpSpread DLL control

Description

Exports the portion of the sheet that contains data to an HTML file.

Syntax

C

BOOL SSExportToHTML(HWND hWnd, LPCTSTR lpszFileName, BOOL bAppendFlag, LPCTSTR lpszLogFile);

C++

BOOL TSpread::ExportToHTML(LPCTSTR lpszFileName, BOOL bAppendFlag, LPCTSTR lpszLogFile);

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.)

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 SSExportRangeToHTML 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

ExportToHTML method

Copyright © GrapeCity, inc. All rights reserved.