c# - Programatically saving a excel file from the web page -


I have a web page that shows some reports when I click on the link for Excel, then all the data Which opens in the CSV file on the screen and opens a file download window that lets me open, save or cancel

I want to download this file to a specific location, without user Without downloading the file download window. I am using a Windows application. I do not have a code for the website displayed on this report, so do not have a dataset. Apart from this, I saw in the HTML that is generated by a visual source on the page but I can not actually scrape through it to get the data.

So I need to know how to download from a given website to a given place on a computer from a given website.

Thank you in advance

Rita

OK You will need to find suitable links or post actions, then you can use something:

  string url = "http: //whatever/.../foo.xsl"; String target = @ "c: / excel document / af.xl"; Web client client = new webclient (); Client.DownloadFile (URL, target);  

If you need to be certified though, then it becomes a bit more complex.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -