TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

GetFullName

GetFullName() → { string }

Returns the full name of the currently opened file.

Parameters:

This method doesn't have any parameters.

Returns:

Type
string

Example

Copy code
builder.CreateFile("docx");
var oDocument = Api.GetDocument();
var sName = Api.GetFullName();
var oParagraph = oDocument.GetElement(0);
oParagraph.AddText("File name: " + sName);
builder.SaveFile("docx", "GetFullName.docx");
builder.CloseFile();

Resulting document