我最近用了一个关于java封装的jxcell.jar架包来对excel文件进行加密,但是我发现,我在windowxp 上创建的excel文件调用其内部方法是可以加密的.可我在javaweb项目上做了关于下载excel文件的页面,然后对下载的excel文件进行加密,报错了,我吧报错的内容贴出来,希望各位大虾能帮小弟解决疑惑,我送分啊!
com.jxcell.CellException: Excel template file is bad or missing.
at R.TI.write(KKLI)
at R.TI.write(KKLI)
at R.CZ.write(KKLI)
at com.jxcell.View.write(KKLI)
at com.friend.test.Test.main(Test.java:21)
Caused by: R.JA: Excel template file is bad or missing.
at R.LB.write(KKLI)
at R.TI.write(KKLI)
at R.TI.writeX(KKLI)
... 5 more
Caused by: java.io.IOException: Element not found
at K.S.copy(KKLI)
at K.S.moveElementTo(KKLI)
... 8 more
------解决方案--------------------
晕乎,没做过。。。。。。。。。。。。。