Class SpreadsheetLocker
Nama dari : Aspose.Cells.LowCode Perhitungan: Aspose.Cells.dll (25.4.0)
Api kode rendah untuk mengunci file spreadsheet.
public class SpreadsheetLocker
Inheritance
Examples
SpreadsheetLocker.Process("template.xlsx", "locked.xlsx", "mypassword", "mypassword");
Methods
Process(String, String, String dan String)
Mengunci file spreadsheet dengan pengaturan yang ditentukan.
public static void Process(string templateFile, string resultFile, string openPassword, string writePassword)
Parameters
templateFile
string
File template yang harus dikunci
resultFile
string
File yang dihasilkan
openPassword
string
kata sandi untuk file encryption
writePassword
string
Password untuk perlindungan modifikasi spreadsheet
Process(LowCodeLoadOptions, LowKodeSaveOption, string, baris)
Mengunci file spreadsheet dengan pengaturan yang ditentukan.
public static void Process(LowCodeLoadOptions loadOptions, LowCodeSaveOptions saveOptions, string openPassword, string writePassword)
Parameters
loadOptions
LowCodeLoadOptions
Pilihan untuk input dan loading
saveOptions
LowCodeSaveOptions
Pilihan untuk output dan simpanan
openPassword
string
kata sandi untuk file encryption
writePassword
string
Password untuk perlindungan modifikasi spreadsheet
Process(LowCodeLoadOptions, LowKodeSaveOption, string, baris, rantai, ProtectionType)
Mengunci file spreadsheet dengan pengaturan yang ditentukan.
public static void Process(LowCodeLoadOptions loadOptions, LowCodeSaveOptions saveOptions, string openPassword, string writePassword, string workbookPassword, ProtectionType workbookType)
Parameters
loadOptions
LowCodeLoadOptions
Pilihan untuk input dan loading
saveOptions
LowCodeSaveOptions
Pilihan untuk output dan simpanan
openPassword
string
kata sandi untuk file encryption
writePassword
string
Password untuk perlindungan modifikasi spreadsheet
workbookPassword
string
Password untuk perlindungan buku kerja
workbookType
ProtectionType
Jenis perlindungan untuk melindungi buku kerja
Process(LowCodeLoadOptions, LowKodeSaveOption, AbstractLowCodProtectionProvider)
Mengunci file spreadsheet dengan pengaturan yang ditentukan.
public static void Process(LowCodeLoadOptions loadOptions, LowCodeSaveOptions saveOptions, AbstractLowCodeProtectionProvider provider)
Parameters
loadOptions
LowCodeLoadOptions
Pilihan untuk input dan loading
saveOptions
LowCodeSaveOptions
Pilihan untuk output dan simpanan
provider
AbstractLowCodeProtectionProvider
Implementasi untuk menyediakan pengaturan perlindungan