Opening an Excel file using the default program

后端 未结 3 1189
一整个雨季
一整个雨季 2020-12-05 20:45

My program successfully creates and fills a Excel(.xls) file. Once created, I would like the new file to open in the system\'s default program (Excel in my case). How can I

3条回答
  •  萌比男神i
    2020-12-05 21:18

    The most simple and efficient way.

    Desktop.getDesktop().open(new File("inputFilePath"));
    

提交回复
热议问题