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 · ·