VB.Net: How to fill in a form in a website, then click at a button and download the file using webbr
Posted
by BasisBit
on Stack Overflow
See other posts from Stack Overflow
or by BasisBit
Published on 2010-03-15T00:08:04Z
Indexed on
2010/03/15
0:09 UTC
Read the original article
Hit count: 367
I am using a WebBrowser-Control to fill in a webform and then click at a button, this currently results in a standard Download File Dialog (you get these if you download a file using internet explorer), but instead, I have to catch this file and save it automatically with a by me defined name to a specific folder.
I am trying to code a little application in vb.net which download the Export-file from my wordpress-blog, and I want to do this completely without user-interaction.
Currently everything works, except the downloading of the file. I tried to catch it with the event System.Windows.Controls.WebBrowser.Navigating(ByVal Object, ByVal System.Windows.Navigation.NavigatingCancelEventArgs) but I don't see where to download the file from :(
I hope you guys can help me.
© Stack Overflow or respective owner