Class SpreadsheetLocker
Tên không gian: Aspose.Cells.LowCode Tổng hợp: Aspose.Cells.dll (25.4.0)
API mã thấp để khóa tệp spreadsheet.
public class SpreadsheetLocker
Inheritance
Examples
SpreadsheetLocker.Process("template.xlsx", "locked.xlsx", "mypassword", "mypassword");
Methods
Process(string, string, string, string)
Lock file spreadsheet với cài đặt cụ thể.
public static void Process(string templateFile, string resultFile, string openPassword, string writePassword)
Parameters
templateFile
string
Template file để được khóa
resultFile
string
Tệp kết quả
openPassword
string
Password cho file encryption
writePassword
string
Mã bảo vệ thay đổi spreadsheet
Process(LowcodeLoadOptions, LowCodeSaveOption, dòng, string)
Lock file spreadsheet với cài đặt cụ thể.
public static void Process(LowCodeLoadOptions loadOptions, LowCodeSaveOptions saveOptions, string openPassword, string writePassword)
Parameters
loadOptions
LowCodeLoadOptions
Các tùy chọn để nhập và tải
saveOptions
LowCodeSaveOptions
Lựa chọn sản xuất và tiết kiệm
openPassword
string
Password cho file encryption
writePassword
string
Mã bảo vệ thay đổi spreadsheet
Process(LowCodeLoadOptions, LowKodeSaveThuyết minh, dòng, string, thread, ProtectionType)
Lock file spreadsheet với cài đặt cụ thể.
public static void Process(LowCodeLoadOptions loadOptions, LowCodeSaveOptions saveOptions, string openPassword, string writePassword, string workbookPassword, ProtectionType workbookType)
Parameters
loadOptions
LowCodeLoadOptions
Các tùy chọn để nhập và tải
saveOptions
LowCodeSaveOptions
Lựa chọn sản xuất và tiết kiệm
openPassword
string
Password cho file encryption
writePassword
string
Mã bảo vệ thay đổi spreadsheet
workbookPassword
string
mật khẩu để bảo vệ sổ làm việc
workbookType
ProtectionType
Loại bảo mật để bảo vệ sổ làm việc
Process(LowcodeLoadOptions, LowCodeSaveOption, AbstractLowCodProtectionProvider)
Lock file spreadsheet với cài đặt cụ thể.
public static void Process(LowCodeLoadOptions loadOptions, LowCodeSaveOptions saveOptions, AbstractLowCodeProtectionProvider provider)
Parameters
loadOptions
LowCodeLoadOptions
Các tùy chọn để nhập và tải
saveOptions
LowCodeSaveOptions
Lựa chọn sản xuất và tiết kiệm
provider
AbstractLowCodeProtectionProvider
Thực hiện để cung cấp các thiết lập bảo vệ