none
IDownloadManager, how to capture ALL file downloads (eg pdfs)? even if "content-disposition=attachment" header is not included in the servers response header?

    Frage

  • hi,

    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?

    any ideas?

    thanks,

    udo

    Freitag, 9. März 2012 09:05

Antworten