Get Started
Usage API

GetValue

GetValue() → { string }

Gets the value of the first cell in range.

Parameters:

This method doesn't have any parameters.

Returns:

Type
string

Example

Copy code
builder.CreateFile("xlsx");
oWorksheet = Api.GetActiveSheet();
oWorksheet.GetRange("A1").SetValue("1");
oValue = oWorksheet.GetRange("A1").GetValue();
oWorksheet.GetRange("A3").SetValue("Value: ");
oWorksheet.GetRange("B3").SetValue(oValue);
builder.SaveFile("xlsx", "GetValue.xlsx");
builder.CloseFile();

Resulting document