English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2 answers

If you just want to launch excel, use

String[] commands = {"cmd", "/K", "start", "excel", "full path to .xls file"};
Runtime.getRuntime().exec(commands);

Where the last string element needs to be the full path to the desired file.

If you want to read the data and then do something with that data in your app (display in a JTable, for example), then you will need to do considerably more work using something like the POI library:

http://jakarta.apache.org/poi/hssf/index.html

2006-09-29 12:54:24 · answer #1 · answered by vincentgl 5 · 0 0

why would you want to do that???

2006-09-28 09:42:00 · answer #2 · answered by Anonymous · 0 0

fedest.com, questions and answers