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?
Since there is already an ActiveX document server registered for the PDF type, I think you have to register your own server to override it, and download the file after
getting the url.
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP
Microsoft führt eine Onlineumfrage durch, um Ihre Meinung zur Msdn Website zu erfahren. Wenn Sie sich zur Teilnahme entscheiden, wird Ihnen die Onlineumfrage angezeigt, sobald Sie die Msdn Website verlassen.