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

Glossary Item Box

SSLoadFromFile Function


See Also    ActiveX

Applies To

fpSpread DLL control

Description

Loads a binary data file.

Syntax

C

BOOL SSLoadFromFile(HWND hWnd, LPCTSTR lpszFileName);

C++

BOOL TSpread::LoadFromFile(LPCTSTR lpszFileName);

Parameters

The following parameters are available:

Parameter Description
hWnd Window handle of the fpSpread control
lpFileName Path and file name of file to load

Remarks

Call this function to load a binary data file. Call the SSLoadTabFile or SSLoadTextFile function to load a delimited data file.

Binary data files are in a proprietary format that only the fpSpread control or the Spread Designer can read.

The file being loaded should have been created using the SSSaveToFile function.

Caution: Loading a Spread file into the control deletes the data currently in the control. The loaded file overwrites existing data. Also, if your sheet had more columns and rows than the loaded sheet, those columns and rows are removed. For example, if your sheet had 100 columns and rows of data, and the loaded sheet has 50 columns and rows of data, once the new sheet is loaded, the sheet only has 50 columns and rows.

Return Value

TRUE if the function completes successfully; FALSE otherwise.

See Also

Loading a Spread File

SSLoadFromBuffer, SSLoadTabFile, SSLoadTextFile, SSSaveTabFile, SSSaveToBuffer, SSSaveToFile, SSSetSheet functions

ActiveX Correspondence

LoadTabFile, LoadFromFile methods

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