程序关闭excel
各位大拿好:
目前只知道java打开excel的程序,如下:
String writeFile = "D:\\结果.xls";
String excelPath = "C:\\Program Files\\Microsoft Office\\OFFICE11\\EXCEL.EXE";
try{
Runtime.getRuntime().exec(excelPath+" "+writeFile);
}
catch(IOException ieo) {}
但是如何用程序关闭excel就不知道了,向大家请教下???多谢!