Get Started
Documentation

GetName

GetName() → { string }

Get sheet name

Returns:

Type
string

Example

Copy code
builder.CreateFile("xlsx");
oWorksheet = Api.GetActiveSheet();
oName = oWorksheet.GetName();
oWorksheet.GetRange("A1").SetValue("Name: ");
oWorksheet.GetRange("B1").SetValue(oName);
builder.SaveFile("xlsx", "GetName.xlsx");
builder.CloseFile();

Resulting document