Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

open excel from java

 
sonia arora
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing a small application in java.
i want to know how can i open a excel sheet on click of a button.
i have downloaded jxl and jexcelapi but do not know how to use them.
where to place those downloads because there is no .exe file.
i have read the tutorial about how to read and write but how to make the .jar file work.
please can any one help. please.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you developing a stand alone java app or a web app?
 
sonia arora
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stand alone
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK and are you wanting to open up the spreadsheet in the Excel installed on the PC or as a sheet loaded through one of the JARs you mentioned?
 
sonia arora
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Excel installed in PC
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, I'm not sure this is the best way to deal with this but you can simply use the Run and Process classes to call Excel.exe and pass it the file name to open.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic