如何为Programatically Exported Excel工作表添加保护? [英] How to add protection to a Programatically Exported Excel sheet?

查看:137
本文介绍了如何为Programatically Exported Excel工作表添加保护?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我有一个我想要导出到Excel工作表的集合。除了导出功能,我还想为excel表添加保护。我不希望用户编辑该文件,而不是使用密码。

我在我的WPF应用程序中使用OpenXmlPackage中的SpreadsheetDocument,将.NET框架作为3.5使用。

如何通过代码实现此目的?

谢谢

Hi I am having a collection which i want to export to Excel sheet. Along with export functionality i also want to add protection to the excel sheet. I doesn't want the user to edit that file, not by using 'Password'.
I am using SpreadsheetDocument from OpenXmlPackage in my WPF application, .NET framework as 3.5.
How can i achieve this through the code?
thank you

推荐答案

请先阅读我对这个问题的评论。



看看这里: 受保护的Office Open XML概述文件 [ ^ ]
Please, read my comment to the question first.

Have a look here: Overview of Protected Office Open XML Documents[^]


这篇关于如何为Programatically Exported Excel工作表添加保护?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆