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

Glossary Item Box

SaveToFile Method


See Also    DLL    Example

Applies To

fpSpread control

Description

Saves the data only, or the data with formatting, to a binary file.

Syntax

C++

BOOL CSpreadSheet::SaveToFile (LPCTSTR FileName, BOOL DataOnly);

Visual Basic

fpSpread.SaveToFile(ByVal FileName As String, ByVal DataOnly As Boolean) As Boolean

Parameters

The following parameters are available:

Parameter Description
FileName Path and file name of file to which to save binary data
DataOnly True to save data only; False to save data with formatting

Remarks

This method is applied to the entire workbook, including all sheets in the control. All the sheets in the control are saved to the binary file.

Binary files are in a proprietary format that only the fpSpread control or the Spread Designer can read. By default, binary files created using Spread or the Spread Designer have the extension .SS8. However, you may use any extension.

If the DataOnly parameter is set to True, only the data is saved. This creates a much smaller file; however, formatting information (such as cell types) is not saved. To save the data with formatting, set the DataOnly parameter to False.

Return Type

True if successful; otherwise, False.

See Also

Saving to a Spread File

Sheet property

LoadFromFile, SaveToBuffer, LoadTabFile, SaveTabFile methods

DLL Correspondence

SSSaveToFile function

Copyright © GrapeCity, inc. All rights reserved.