Discussion Locked

Open Excel 97 with Java

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi. I'm completing a program which to make a long story short retrieves data from an Oracle database and outputs this to a flat file(*.csv) which in turn will be used in Excel 97 for reports. I was wondering what the best way of going about opening this file up for viewing in Excel through my Java program would be(i.e. clicking "File") instead of finding the file manually outside of the Java program and double clicking it. Any thoughts?

THX in advance...

4 replies

by okujava

just call Runtime.getRuntime.exec("start " + filename");

be carefull on non Win platforms... :)

cheers

by zilvertung

Hi. THX for the input... sorry I took so long but I guess I kinda faded on that part due to finishing my co-op placement and my last school course. So here's your points.

:)

This discussion is closed to new replies.