LoadFromFile Method
Applies To
fpSpread control
Description
Loads a binary data file.
Syntax
C++
BOOL CSpreadSheet::LoadFromFile (LPCTSTR FileName);
Visual Basic
fpSpread.LoadFromFile(ByVal FileName As String) As Boolean
Parameters
The following parameter is available:
Parameter | Description |
FileName | Path and file name of file to load |
Remarks
Use this method to load a binary data file. Use the LoadTabFile or LoadTextFile method 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.
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 control only has 50 columns and rows. |
Return Type
True if successful; otherwise, False.
See Also
Sheet property
LoadTabFile, LoadFromBuffer, LoadTextFile, SaveTabFile, SaveToFile methods
DLL Correspondence
SSLoadFromFile function