ES2Spreadsheet.Save
public void Save(string path, ES2Settings settings=null)
Parameters
[table th=”0″]path,”The path of the file we want to create to save the spreadsheet.”
settings,”Optional. A user-created ES2Settings object containing options not specified in path.”[/table]
Description
Stores the spreadsheet into a file at the given path. If the ES2Spreadsheet object has it’s append variable set to true, it will append the data to this file if it already exists.
C#
ES2Spreadsheet sheet = new ES2Spreadsheet(); // Add data to cells in the spreadsheet. for(int col=0; col<10; col++) for(int row=0; row<8; row++) sheet.SetCell(col, row, "someData"); sheet.Save("mySheet.csv");
JS
var sheet : ES2Spreadsheet = new ES2Spreadsheet(); // Add data to cells in the spreadsheet. for(var col=0; col<10; col++) for(var row=0; row<8; row++) sheet.SetCell(col, row, "someData"); sheet.Save("mySheet.csv");