C# 封闭.XML 密码保护

问题描述 投票:0回答:1

我正在使用 c# Closed.XML 创建 Excel 文件,然后我需要使用密码保护它们。

您是否知道通过 Closed.XML 使用密码保护 Excel 文件,或者您知道另一种创建密码保护的方法?

c# password-protection closedxml
1个回答
0
投票

用于创建带有密码保护的内容 IXLWorksheet.Protect({string} 你的密码)

无保护读取文件 IXLWorksheet.Unprotect({string} yourpassword)

© www.soinside.com 2019 - 2024. All rights reserved.