Suppressing the Save/Open Dialog box in a WebBrowser control

后端 未结 2 1001
说谎
说谎 2020-12-16 06:00

I have a WebBrowser control that is automatically logging me into a website and attempting to download CSV data automatically. Everything is working fine, except, when it tr

相关标签:
2条回答
  • 2020-12-16 06:30

    you can't suppress the file download dialog as that it would be a major security risk. I would suggest you investigate other routes to get your request authenticated if you want to make this process automatic.

    0 讨论(0)
  • 2020-12-16 06:56

    You can hook up your own IDownloadManager implementation that does download quietly. For Windows Forms, this means you need to override the WebBrowser.CreateWebBrowserSiteBase method to provide your extended control site. Check Webbrowser Control Downloads for details.

    0 讨论(0)
提交回复
热议问题