File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes open excel from java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "open excel from java" Watch "open excel from java" New topic
Author

open excel from java

sonia arora
Ranch Hand

Joined: Mar 10, 2010
Posts: 31
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

Joined: Jun 24, 2003
Posts: 3274
    
    5

Are you developing a stand alone java app or a web app?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
sonia arora
Ranch Hand

Joined: Mar 10, 2010
Posts: 31
Stand alone
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

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

Joined: Mar 10, 2010
Posts: 31
Excel installed in PC
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: open excel from java