Spread 8.0 Documentation
LoadFromFile Method
Support Options
ActiveX Reference > ActiveX Methods > LoadFromFile Method

Glossary Item Box

LoadFromFile Method


See Also    DLL    Example

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

Loading a Spread File

Sheet property

LoadTabFile, LoadFromBuffer, LoadTextFile, SaveTabFile, SaveToFile methods

DLL Correspondence

SSLoadFromFile function

Copyright © GrapeCity, inc. All rights reserved.