防止Microsoft Excel打开xlsx文件. [英] Prevent microsoft excel from opening xlsx file.

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

问题描述

我有一个带有图表,表格和公式的xlsx文件.最初,该文件是在Microsoft Excel 2007中创建的.
有没有一种方法可以防止文件被Microsoft Excel打开?也许是因为我弄乱了文件头,或者是我写了一个自定义包装程序,甚至是自定义加密它?
加密/包装后,xlsx文件应该是Microsoft Excel无法识别的文件,可能带有自定义扩展名.

打开xlsx文件的唯一方法是通过我的C#程序将其打开,该程序将对其解密或解包,然后使用DSO成帧器在C#中也将其显示.解密/解包和显示它的过程没有在硬盘上保存任何xlsx文件.

如果有办法,有人可以指出我正确的方向吗?
我的多阶段程序的第一阶段是对其进行加密/包装(不确定它是否是正确的术语).
我只知道如何描述我打算做的事情,但不知道它的正确用语,因此不确定如何甚至开始在google中搜索它.

请指教.谢谢.

Hi, I''ve got an xlsx file with charts, tables, formulas. Initially, the file was created in Microsoft Excel 2007.

Is there a way for me to prevent the file from being opened by Microsoft Excel? Maybe by me messing with the file header or maybe me writing a custom wrapper or even custom encrypt it?
After encrypting/wrapping it, the xlsx file should be a file that is not recognized by Microsoft Excel, maybe with a custom extension.

The only way to open the xlsx file is to open it through my C# program, which decrypt or unwrap it and then displaying it also in C# by using DSO framer. The decrypting/unwrapping and displaying it is done without any xlsx file saved on the hard disk.

If there is a way, can somebody please point me to the right direction?
The first phase in my multi-phase program is to encrypt/wrap it (not sure if it is the right terminology or not).
I only know how to describe what I plan to do but don''t know what it the right term for it so am not sure how to even start searching for it in google.

Please advise. Thanks.

推荐答案

如评论中所讨论,我建议紧跟 http://support.microsoft.com/kb/307010 [ ^ ]加密文件.
As discussed in comments, I would suggest following the article at http://support.microsoft.com/kb/307010[^] to encrypt your file.


这篇关于防止Microsoft Excel打开xlsx文件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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