Get Started
Usage API
More information

Save

Save()

Save changes to the specified document.

Parameters:

This method doesn't have any parameters.

Returns:

This method doesn't return any data.

Example

Copy code
builder.CreateFile("xlsx");
oWorksheet = Api.GetActiveSheet();
oWorksheet.GetRange("A1").SetValue("This sample text is saved to the worksheet.");
Api.Save();
builder.SaveFile("xlsx", "Save.xlsx");
builder.CloseFile();

Resulting document