When i try the above program most of the time its giving null pointer exception or some times copied xls file is not in the proper format to open (I am using Ubuntu Linux OS)but if i open the "Sample_WordMasterTemplate.xls" and do so editing and save and close it then every thing works fine .. only when i download a file from network and try to process through JExcel this problem arises otherwise everything is working fine .
Tim Moores
Rancher
Joined: Sep 21, 2011
Posts: 2407
posted
0
Any particular reason you're not simply using FileInputStream/FileOutputStreamm for copying the file? Seems like there would be less chance for problems.
vicky ece
Greenhorn
Joined: Jan 03, 2012
Posts: 17
posted
0
Tim Moores wrote:Any particular reason you're not simply using FileInputStream/FileOutputStreamm for copying the file? Seems like there would be less chance for problems.
Thanks for you reply ....
I have tried with FileInputStream/FileOutputStreamm the same problem arises.
And also i find that, if i have a cell with formula then every things works fine[Actually NullPointer Exception is caused by some method in Jexcel Api class i found that by Debugging , so i tried with adding a formula in a cell then uploaded to my mail and then downloaded from my Mail every thing works fine but without that one the same problem arises] ...................