views:

17

answers:

1

Hi,

I have a webbrowser in my windows form application. I navigate a page and after document completed i click "download" button with javascript. cleary ;

 wb.Document.GetElementById("btnDownload").InvokeMember("click");

then save file dialog shows up. But I need to get this file as stream.

thanks.

A: 

I would suggest to get this done by extracting url address of the file from a page and use WebClient to download file WebClient.DownloadFile Method (String, String)

volody