Getting default PDF viewer
C#
3
Posts
3
Posters
0
Views
1
Watching
-
Hi, I want to run a process to view a PDF file. However I'm unsure of how to retrieve the default application to view a certain file type. Can someone point me in the right direction?
-
Hi, I want to run a process to view a PDF file. However I'm unsure of how to retrieve the default application to view a certain file type. Can someone point me in the right direction?
You can use the Shell32 dll to get the executables for certain extensions...
[DllImport("shell32.dll", EntryPoint="FindExecutable")] private static extern long FindExecutableA(string file, string directory, StringBuilder res);
There is a nice tutorial somewhere in Codeproject if I remember right...-------------------- Bertram Weckmann www.svizzer.com --------------------