Using C#, WPF, .NET Framework. Any browser.
It is easy to open the default browser with an HTTP URL using Process.Start.
How would one open a PDF file in the default browser using Process.Start?
As per Microsoft documentation, I have tried Process.Start("file:///"+filename) where filename is the explorer filename with "\" replaced with "/". For example, Process.Start("file:///"+"C:/My Folder/My PDF file.pdf").
In this case, the default PDF reader is always opened, not the browser. Is this because there is a PDF reader installed? Would it use the browser correctly if there was not a PDF reader installed?
Even with a PDF reader installed, I want to force the file to be opened in the default browser.
How might one do that?