Get Started
Usage API

AddSheet

AddSheet(sName)

Creates a new worksheet. The new worksheet becomes the active sheet.

Parameters:

Name Type Description
sName string

Returns:

This method doesn't return any data.

Example

Copy code
builder.CreateFile("xlsx");
oSheet = Api.AddSheet("New sheet");
builder.SaveFile("xlsx", "AddSheet.xlsx");
builder.CloseFile();

Resulting document