Link Search Menu Expand Document

SSpread.SaveToFile Method

Explanation Save the spreadsheet data to a binary file.

Binary files are SSpread's own format. It can be loaded using the LoadFromFile method.Use the ExportToTextFile and SaveTabFile methods to save as a text file separated by characters such as tabs.
Call format SaveToFile(Writer, dataonly)
Return value None
Arguments Writer Save to Writer Object
dataonly $TRUE if you want to save only the data, $FALSE if you want to save with formatting
Exception EXT-25 No valid Writer object specified
EXT-28 An error occurred in the SaveToFile method
Example of use
    var fs = new FileSystem();
    var f = fs.SaveDialog("Save", "SSpread saved data(*.*)=*.*", "", "");
    SaveToFile(f, $FALSE);
    f.Close();
    
Related item ExportToTextFile, LoadFromFileSaveTabFile methods