Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
I am trying to do the following. Suppose I have a .doc file. So I want my program to launch Word application and open that file. Is there a way to do that in Delphi? I tried WinExec function, but it only opens .exe files, so I can open Word but not the file. Also I did this using TWordApplication component, but it does all the required actions in the background, not showing it on the screen.
Ideally, of course, I would like to have a function that will recognize a type of file and itself choose a program to open this file with. Kind of what Windows does when I click on any file. Is there any way how I can make this?
Any help highly appreciated.
0 · ·