OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Connecting over the internet from Calc

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
vijay.openoffice
Newbie
Newbie


Joined: 29 Sep 2010
Posts: 3

PostPosted: Thu Sep 30, 2010 1:19 am    Post subject: Connecting over the internet from Calc Reply with quote

Can I connect to a remote server from calc. Something similar to web browser component in MS Office.
Back to top
View user's profile Send private message
ttl
General User
General User


Joined: 04 Jan 2007
Posts: 10

PostPosted: Sun Oct 10, 2010 3:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
vijay.openoffice
Newbie
Newbie


Joined: 29 Sep 2010
Posts: 3

PostPosted: Wed Oct 20, 2010 9:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group