ES2Spreadsheet.Save
Parameters
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. |
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#
1 2 3 4 5 6 |
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
1 2 3 4 5 6 |
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"); |