code要打开密码保护的Excel文件 [英] Code To Open Password Protected Excel File

查看:140
本文介绍了code要打开密码保护的Excel文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

帮助!

我有密码保护的Excel 2007文件,我丢失了密码。任何code。在.NET中打开这样的文件?

I have a password protected Excel 2007 file and I lost the password. Any code in .NET to open such a file?

基本上,我需要的文件的内容只是一个快照。

Basically, I would need just a snapshot of the contents of the file.

感谢。

推荐答案

在.NET中唯一的办法我能想到的将是Excel自动运行,并不断尝试进入不同的密码,但它可能会更好,试图弄个一些应用程序,可能会多一点有效地为你做的。 这是假设你已经使用了一些简单的单词作为密码,因为据我所知,没有捷径,因此将不得不做一个字典攻击,所以如果你已经使用了艰难的密码可能需要很长的时间发现并非如此。

The only way in .Net I can think of would be to automate Excel and keep trying to enter different passwords, but it might be better to try to get hold of some app that might do that for you a bit more efficiently. This is assuming that you've used some simple word as the password, as far as I know there's no shortcuts so it'll have to do a dictionary attack, so if you've used a difficult password it might take a very long time to find otherwise.

这篇关于code要打开密码保护的Excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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