首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C# > 访问受密码保护的微软Office 2007文件(开放式文件格式)

访问受密码保护的微软Office 2007文件(开放式文件格式)

资 源 简 介

OOXML Crypto Stream Create, open and save password-protected Microsoft Office 2007 files. Works with Office 2007 files and encryption scheme only (.docx, .xlsx, .pptx). No support for older formats. Includes slightly modified ExcelPackage for accessing Excel 2007 .xlsx files. Download the [binary release](http://ooxmlcrypto.googlecode.com/files/OfficeOpenXmlCrypto-bin0.1.zip) (68k). Written in C# / .Net 3.0 Sample Code ``` using (OfficeCryptoStream stream = OfficeCryptoStream.Open("a.xlsx", "password")) { // Do stuff (e.g. create System.IO.Packaging.Package or // ExcelPackage from the stream, make changes and save) // Change the password (optional) stream.Password = "newPassword"; // Encrypt and save the file stream.Save(); } ``` Details Office 2007 files (Word 2007 .d

文 件 列 表

OfficeOpenXmlCrypto.dll
ExcelPackage.dll
NPOI.POIFS.dll
NPOI.Util.dll

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.394249s