Get Started
Documentation

SetHyperlink

Add Hyperlink

Parameters:

Name Type Description
sRange string
sAddress string
ScreenTip string
sTextToDisplay string

Returns:

This method doesn't return any data.

Example

Copy code
builder.CreateFile("xlsx");
oWorksheet = Api.GetActiveSheet();
oWorksheet.SetHyperlink("A1", "https://api.onlyoffice.com/docbuilder/basic", "Api ONLYOFFICE", "ONLYOFFICE for developers");
builder.SaveFile("xlsx", "SetHyperlink.xlsx");
builder.CloseFile();

Resulting document