My.Net Windows Forms application creates a PDF report that I want to show to the user.
Instead of assuming that the PDF viewer is installed on the client PC and blindly drop the PDF in the operating system to open, there is a way to check the list of file associations on the client in advance , and then show "you need to install the application to view PDF files - here are a few sentences .. "if the PDF is not a registered type?
I found a lot of questions and answers about changing or registering file associations, but I just need an easy way to request a list, not change it.
I need a solution that works in Windows XP and beyond (WinXP, Vista, Win7).
thanks for the help
Andrew
source share