M
mp
I found this amazing ability in Excel to get data from a web site via the
following
an example url
qurl = "http://download.finance.yahoo.com/d/quotes.csv?s=rok&f=a"
ActiveSheet.QueryTables.Add(Connection:="URL;" & qurl,
Destination:=DataSheet.Range("C7"))
returns data on a stock named rok
when i try to do that from c# I tried to establish a data source with the
wizard
menu Data|Add new data source
brings up Data SourceConfiguration Wizard
I selected service (guessing that means online web data???)
that brings up add service reference dialog
I tried pasting that url in to the address textbox but tried every variation
i can think of and just get errors
i get an error with that same url
"The document at the url ....
<i tried many variations>
http://download.finance.yahoo.com/d/quotes.csv?s=rok&f=a
http://download.finance.yahoo.com/d/quotes.csv?
http://download.finance.yahoo.com/d/quotes
http://download.finance.yahoo.com/d/
http://download.finance.yahoo.com/
"was not recognized as a known document type.
etc etc etc"
is it better/required to use ado.net to get to web data?
thanks
mark
following
an example url
qurl = "http://download.finance.yahoo.com/d/quotes.csv?s=rok&f=a"
ActiveSheet.QueryTables.Add(Connection:="URL;" & qurl,
Destination:=DataSheet.Range("C7"))
returns data on a stock named rok
when i try to do that from c# I tried to establish a data source with the
wizard
menu Data|Add new data source
brings up Data SourceConfiguration Wizard
I selected service (guessing that means online web data???)
that brings up add service reference dialog
I tried pasting that url in to the address textbox but tried every variation
i can think of and just get errors
i get an error with that same url
"The document at the url ....
<i tried many variations>
http://download.finance.yahoo.com/d/quotes.csv?s=rok&f=a
http://download.finance.yahoo.com/d/quotes.csv?
http://download.finance.yahoo.com/d/quotes
http://download.finance.yahoo.com/d/
http://download.finance.yahoo.com/
"was not recognized as a known document type.
etc etc etc"
is it better/required to use ado.net to get to web data?
thanks
mark