VB 2010 express webbrowser view downloads dialog box handle. RRS feed

  • Question

  • Hello All,

    I am using webbrowser to navigate through a report application. When I click export to excel from my webbrowser, it automatically opens a dialog box asking me save the file to the location. Is there a work around for this method where I can save the file directly to a path or just open the excel, without having to go through the pop up window. The code when I click to open excel is as follows

    WebBrowser1.Document.Window.DomWindow.execscript("$find('ctl31').exportReport('EXCEL')", "JScript")

    Any help on this would be really appreciated.



    Friday, July 12, 2013 2:26 PM