SpreadsheetLocker

SpreadsheetLocker class

Low code api to lock spreadsheet file.

class SpreadsheetLocker;

Methods

MethodDescription
isNull()Checks whether the implementation object is null.
static process(string, string, string, string)Locks spreadsheet file with specified settings.

isNull()

Checks whether the implementation object is null.

isNull() : boolean;

process(string, string, string, string)

Locks spreadsheet file with specified settings.

static process(templateFile: string, resultFile: string, openPassword: string, writePassword: string) : void;

Parameters:

ParameterTypeDescription
templateFilestringThe template file to be locked
resultFilestringThe resultant file
openPasswordstringPassword for file encryption
writePasswordstringPassword for protection of modifying spreadsheet