After creating an Excel file (*.xlsx
) programmatically, I would like to open it using the default system application for *.xlsx
files.
Problems are,
- Getting that default application whether it is Microsoft Office Excel or some third party software that can open
*.xlsx
files. Considering, normally user can set default applications to open a specific file in Windows (version 7, 8 or 8.1) - Now check if that application is already running on the system and if yes use or then open a new instance of it to open
*.xlsx
file.
This question can also be generalized as to open any file using the default applications set for it in windows system and give a message to the user in case there isn't any applications that can open this file on the local system.