6
Answers

Download pdf with WebBrowser without opening a new browser

Hi,
I'm trying to use a webbrowser in a C# MVC web application to download a pdf file.
I have to login and after logging in I must emulate the click of a button to download the pdf which is generated in the moment.
My problem is that the program tries to open a new webbrowser and I lose the login credentials, so I need to download the pdf without opening a new webbrowser.
Can anyone please help me?
 
Thank you very much.
Joaquim Margarido 
Answers (6)