SpreadsheetLocker类

SpreadsheetLocker类

低代码 API 来锁定电子表格文件。

SpreadsheetLocker 类型公开以下成员:

方法

方法描述
process(, template_file, result_file, open_password, write_password)使用指定的设置锁定电子表格文件。
process(, load_options, save_options, open_password, write_password)使用指定的设置锁定电子表格文件。
process(, load_options, save_options, open_password, write_password, workbook_password, workbook_type)使用指定的设置锁定电子表格文件。
process(, load_options, save_options, provider)使用指定的设置锁定电子表格文件。

例子

from aspose.cells.lowcode import SpreadsheetLocker

SpreadsheetLocker.process("template.xlsx", "locked.xlsx", "mypassword", "mypassword")

也可以看看