INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

jxl

jxl

(OP)
I don't think this is possible but thought I'd ask. A cell's value is calculated based on a formula e.g. A2=A1*3. Change A1 value

CODE

Number number = new Number(0,0,6); //set A1 to 6
workSheet.addCell(number);

System.out.println(workSheet.getCell(0,1).getContents()));

expect output to be 18

 

RE: jxl

Have a look at [url=http://poi.apache.org/]Apache POI[/url], that supports both .xls and .xlsx Excel formats, but also evaluation of most of the Excel functions (but not user-defined-functions)

Grab the latest beta (3.8 beta 4) for testing/trying, it's feature rich, quite stable, and will be released quite soon.

POI is a little less simple to get implemented then jxl (it has several jars that need to be on the classpath) but it's much more powerful, and actually future-safe, as it's being actively developed, and also supports Office 2007/2010 file formats.

RE: jxl

(OP)
Thanks, I have downloaded it but haven't had a chance to try it yet.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close