File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes How to run Excel from a java app? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to run Excel from a java app?" Watch "How to run Excel from a java app?" New topic
Author

How to run Excel from a java app?

Lefty Gomez
Greenhorn

Joined: Nov 15, 2001
Posts: 14
Urgent!!! PLease!!
kate damond
Ranch Hand

Joined: Apr 17, 2001
Posts: 77
app- lication or app- let ?
Dave Donohoe
Ranch Hand

Joined: May 16, 2000
Posts: 73
Check out Java2COM at http://www.nevaobject.com/java/java2com/java2commain.htm
You should be able to use this with an App-lication or an App-let
!
D
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
You can treat excel just like an ODBC database. Go to the JDBC forum and search on Excel and you will get some code examples.


"JavaRanch, where the deer and the Certified play" - David O'Meara
Lefty Gomez
Greenhorn

Joined: Nov 15, 2001
Posts: 14
I just want to run an *.exe file from my application.
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Oh - try this:

Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

On a related thread, I had several email requests asking whether I knew how to read CSV files from multi-page worksheets and the like into Java. Nope, I didn't. Still don't.
However, I was made aware yesterday of a tool, built on top of JNI, that allows COM programmers to integrate Java code with MS-style objects. It's called Jawin, it's open-source, and most important, free. Slaves to Microsoft(tm) Empire, rejoice!
The most impressive thing to me, who will not code to the MS platform if I can help it, is the author's understanding of what the JNI (Java Native Interface) is and isn't good for. And I quote:

JNI is best when it is used to build a higher level marshalling layer that provides a transparent, or near transparent, mapping
between Java objects and objects on a particular native platform.

Sage words indeed.
By the way, if you are one of the very few that have emailed problematic source code to me with 'please fix' subject lines, please don't wait on a response. I understand frustration, not knowing what else to try, looming deadlines; they visit my hoouse too. I'm sympathetic, but trying to help as many people as I can by posting publicly.


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
 
wood burning stoves
 
subject: How to run Excel from a java app?