Force file to dowload

  • Thread starter Thread starter Albano Alves
  • Start date Start date
A

Albano Alves

Hi!

How can I force the file download, for example a .doc?
I don't want to open with IE.

Thanks.

Albano Alves
 
Albano,

Albano Alves said:
How can I force the file download, for example a .doc?
I don't want to open with IE.

'WebClient.DownloadFile' (requires a reference to "System.Web.dll").
 
Albano,

There is not much to give as example with this.
When the reference is set, than does this the Job

dim wb as new webclient
wb.downloadfile("Url","c"\myfile.jpg")

I hope this helps?

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top