Class SpreadsheetLocker
Namespace: Aspose.Cells.LowCode
Assembly: Aspose.Cells.dll (25.4.0)
Low code api to lock spreadsheet file.
public class SpreadsheetLocker
Inheritance
Examples
SpreadsheetLocker.Process("template.xlsx", "locked.xlsx", "mypassword", "mypassword");
Methods
Process(string, string, string, string)
Locks spreadsheet file with specified settings.
public static void Process(string templateFile, string resultFile, string openPassword, string writePassword)
Parameters
templateFile
string
The template file to be locked
resultFile
string
The resultant file
openPassword
string
Password for file encryption
writePassword
string
Password for protection of modifying spreadsheet
Process(LowCodeLoadOptions, LowCodeSaveOptions, string, string)
Locks spreadsheet file with specified settings.
public static void Process(LowCodeLoadOptions loadOptions, LowCodeSaveOptions saveOptions, string openPassword, string writePassword)
Parameters
loadOptions
LowCodeLoadOptions
Options for input and loading
saveOptions
LowCodeSaveOptions
Options for output and saving
openPassword
string
Password for file encryption
writePassword
string
Password for protection of modifying spreadsheet
Process(LowCodeLoadOptions, LowCodeSaveOptions, string, string, string, ProtectionType)
Locks spreadsheet file with specified settings.
public static void Process(LowCodeLoadOptions loadOptions, LowCodeSaveOptions saveOptions, string openPassword, string writePassword, string workbookPassword, ProtectionType workbookType)
Parameters
loadOptions
LowCodeLoadOptions
Options for input and loading
saveOptions
LowCodeSaveOptions
Options for output and saving
openPassword
string
Password for file encryption
writePassword
string
Password for protection of modifying spreadsheet
workbookPassword
string
Password for protection of the workbook
workbookType
ProtectionType
Protection type to protect the workbook
Process(LowCodeLoadOptions, LowCodeSaveOptions, AbstractLowCodeProtectionProvider)
Locks spreadsheet file with specified settings.
public static void Process(LowCodeLoadOptions loadOptions, LowCodeSaveOptions saveOptions, AbstractLowCodeProtectionProvider provider)
Parameters
loadOptions
LowCodeLoadOptions
Options for input and loading
saveOptions
LowCodeSaveOptions
Options for output and saving
provider
AbstractLowCodeProtectionProvider
Implementation to provide protections settings