各位大拿好:目前只知道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就不知道了,向大家请教下???多谢!
String writeFile = "D:\\结果.xls";
String excelPath = "C:\\Program Files\\Microsoft Office\\OFFICE11\\EXCEL.EXE";
try{
Runtime.getRuntime().exec(excelPath+" "+writeFile);
}
catch(IOException ieo) {}
但是如何用程序关闭excel就不知道了,向大家请教下???多谢!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货