I used the...
Runtime.getRuntime().exec("winword.exe myfile.doc");
...line that Cindy gave me. I use it inside an 'else if' statement, but it asks for an IOException to be caught.
I've created this exception inside the 'else if' statement (with the line call), but it wants a
try call too...which I can't do.
Here's the offending bit of code. Thank you people
--------
public void serviceMenuEvent(MenuItem menuItemObject)
{
..... (previous code)
else if (menuItemObject == vrep)
{
Runtime.getRuntime().exec("winword.exe report.doc");
catch (IOException e)
{
System.err.println(e);
}
}
}