GetFullName
function GetFullName(): string
Description
Returns the full name of the currently opened file.
Returns
string
Try It
var oDocument = Api.GetDocument();
var sName = Api.GetFullName();
var oParagraph = oDocument.GetElement(0);
oParagraph.AddText("File name: " + sName);