Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Launch MS product with results

Status
Not open for further replies.

buggles

Programmer
Apr 10, 2002
2
US
I am trying to launch MS Word or Excel with results using a Java dataset. Are there any APIs available to do this? Any other way to do it?

Sorry for accidently posting this is the FAQ...I'm a newbie :{
 
Hi,
try this,
in your main function,
Runtime r = Runtime.getRuntime();
Process p = null;
try
{
p = r.exec(Pathname);
}
catch(Exception e)
{
}
Pathname* is the path of your Excel or Word application
let me know if it works
 
That's great...it does launch the MS application, but I can't dynamically add my results to the apps. I want the result set to somehow 'magically' get into Word...any ideas?

Thanks for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top