How to trigger IE's default file download behavior, having a IWebBrowser2 interface ptr?

Unanswered How to trigger IE's default file download behavior, having a IWebBrowser2 interface ptr?

  • Thursday, July 05, 2012 12:18 AM
     
     

    Hello,

    Need to trigger a file download using the default IE's file download behavior -with a "save, run, cancel" popup, etc.

    So far not much luck. Navigate2 just tries to read the whole thing, there's no Download() method and everybody on the interwebs is obsessed with custom download managers. What gives?

    Thanks,
    Yuriy

All Replies

  • Sunday, July 08, 2012 12:18 PM
     
     
    Any ideas, anyone?
  • Monday, July 09, 2012 10:04 AM
    Moderator
     
     

    Hello,

    I found a thread with sample codes about custom download manager, I hope it can help you.
    http://social.msdn.microsoft.com/Forums/en-US/ieextensiondevelopment/thread/7721c706-fa6e-489e-aa80-1f43f90bc7ef/

    Best regards,
    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

  • Monday, July 09, 2012 12:25 PM
     
     

    Thanks for your input, I did see that thread. My task is a bit different - I need to trigger, the default download manager, not implement a custom one. So far I don't see how I can forward a call from my custom one to the default one. Do you?

    Yuriy

  • Wednesday, July 11, 2012 3:16 AM
     
     

    Yuriy Gettya wrote:

    Thanks for your input, I did see that thread. My task is a bit  different - I need to*trigger*, the default download manager, not
    implement a custom one. So far I don't see how I can forward a call  from my custom one to the default one.

    Just return any failure HRESULT from IDownloadManager::Download.


    Igor Tandetnik

  • Wednesday, July 11, 2012 3:54 AM
     
     
    Hello Igor, I'm curious, are you making an educated guess or you know for sure it will not just fail?