| View previous topic :: View next topic |
| Author |
Message |
vijay.openoffice Newbie

Joined: 29 Sep 2010 Posts: 3
|
Posted: Thu Sep 30, 2010 1:19 am Post subject: Connecting over the internet from Calc |
|
|
| Can I connect to a remote server from calc. Something similar to web browser component in MS Office. |
|
| Back to top |
|
 |
ttl General User


Joined: 04 Jan 2007 Posts: 10
|
Posted: Sun Oct 10, 2010 3:45 pm Post subject: |
|
|
Don't know if this is what you had in mind. Here is Java code that opens a URL accessing yahoo finance web site, reads the response and concatenates lines into a variable for subsequent processing.
String inputLine;
String response = "";
URL yahoo = new URL("http://download.finance.yahoo.com/d/quotes.csv?s=IBM&f=l1");
BufferedReader in = new BufferedReader(new InputStreamReader(yahoo.openStream()));
while ((inputLine = in.readLine()) != null)
{
response += inputLine;
}
in.close(); |
|
| Back to top |
|
 |
vijay.openoffice Newbie

Joined: 29 Sep 2010 Posts: 3
|
Posted: Wed Oct 20, 2010 9:44 pm Post subject: |
|
|
| Thanks. Actually I need to upload data from my local calc spreadsheet to a remote spreadsheet. Also need confirmation of successful data upload. |
|
| Back to top |
|
 |
|