i'm working on an application hosting a webbrowser control that should save all downloaded files to some specific folder. my code works fine for files where the server specifies "content-disposition=attachment" in the response and filetypes not registered on the system.
my problem: when a pdf is received and "content-dispostion=attachment" is not specified in the response header , the adobe activex control shows up in the browser window and displays the content. my app should download the pdf instead through the download manager interface. disabling "display in browser" openes the pdf in the viewer itself, but does not trigger IDownloadManager.
is there any way to turn off embedding ActiveX controls within the webbrowser? no global setting for the system, just for the webbrowser my app is hosting?