用Java保护Excel文件 [英] Protect excel file with java

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

问题描述

有没有一种方法可以用Java创建受保护的开放excel文件?我正在查看JExcelApi和Apache Poi项目,但对于它们两者,我无法弄清楚如何保护生成的xls文件.我想确保只有知道密码的人才能打开生成的文件.

Is there a way to create open protected excel file in Java? I'm looking at JExcelApi and Apache Poi projects but with both of them I cannot figure out how to protect generated xls file. I want to assure that generated file can be opened only by people that know password phrase.

推荐答案

我建议使用 JACOB (COM-> Java桥),并通过COM自动化控制Excel.当然,这将要求在有问题的计算机上安装Excel.

I would recommend using JACOB (COM->Java bridge), and control Excel via COM automation. This will, of course, require that Excel be installed on the machine in question.

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

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