CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2002
    Location
    Indiana
    Posts
    1

    Lightbulb Downloading a file from a url automatically.

    Hello,

    Yahoo Finance has a 'download spreadsheet' you can click on and download and open into excel, but I would like to automate that using a script to obtain the file, then I can process it and use the data.

    The link below will take you to Yahoo Finance with our stock simbol.

    http://finance.yahoo.com/q?s=thff&d=v1

    If you click on 'download spreadsheet' it will ask if you want to open, or save the attachment.

    http://finance.yahoo.com/d/quotes.cs...1c1ohgv&e=.csv

    I would like to find a better way to get this data downloaded to use.

    Any ideas would be greatly appreciated.

    Philip

  2. #2
    Join Date
    Jul 2002
    Location
    Don't Know, Don't Care
    Posts
    346
    no client side scripting language offers power of this magnitude.
    look into server side scripting languages, they can do it

    good luck

    by the way if you know C/C++ or Java and the like and WinSock you could do it with an actual app

    C G C F A D--Feel the Noise

    "When your life goes nowhere and leads back to me, doesn't that tell you something?"
    ~Gray Area Fury

  3. #3
    Join Date
    Nov 2002
    Location
    India
    Posts
    6
    If you have control over the calling asp page then change the "content type" to Excell in the HTML tags. This will show the data in Excell Sheet at the Client(browser).

  4. #4
    Join Date
    Jan 2003
    Posts
    4
    1.create the activex control
    2.Please use the VB 6.0's ¡°Package & Deployment Wizard¡±,make the ocx file into a .cab and a .html file
    3.moidefy the CODEBASE="-----your location"

  5. #5
    Join Date
    Jan 2003
    Location
    7,107 Islands
    Posts
    2,487

    Thumbs up

    For me, I'll go for active EXE document in VB. There's a built in http downloader (asynchread!? or something like that). It looks like a form. You can take advantage of the VB programming for the data manipulations or whatsoever stuffs
    Busy

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

Featured