Results 1 to 6 of 6

Thread: Download from web [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Fanatic Member pvbangera's Avatar
    Join Date
    Sep 2001
    Location
    Mumbai, India
    Posts
    961

    Download from web [RESOLVED]

    HI all,

    I have a webpath say: www.webserver.com/getfile.asp

    How to download the resulting htm file thru vb.net?

    in vb6 i used to do the following:

    VB Code:
    1. Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long
    2.  
    3.     Public Function DownloadFile(ByVal URL As String, ByVal LocalFilename As String) As Boolean
    4.         Dim lngRetVal As Long
    5.         lngRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, 0)
    6.         If lngRetVal = 0 Then DownloadFile = True
    7.     End Function


    pls guide
    Last edited by pvbangera; Apr 2nd, 2004 at 10:21 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width