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

Sending Calc data to a remote device in Basic

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


Joined: 06 Dec 2009
Posts: 1

PostPosted: Sun Dec 06, 2009 8:19 am    Post subject: Sending Calc data to a remote device in Basic Reply with quote

I wish to send selected data to a remote device from cells in a Calc spreadsheet each time I press a certain key. I have created macros in Basic to extract and convert the data as I need it. I have tested this by writing output to a set of disk files that mimic sending to the remote device. I have done this by copying example code (for which I am very grateful) and experimenting. I only understand simple Basic and have only an elementary understanding of how to use Objects. I am using OOo 3.1.1 on XP SP3.

Now, I want to send to send each batch of data to the remote device instead of the disk files but cannot find reference examples or manual pages that I understand.

I have the following instructions from the supplier of the remote device -
"use a socket component and transmit the same data string to
port 10001 on the IP address of the unit." I am hoping that someone can show me how to construct a suitable “socket component”.

I would also like to test that I have coded this interface correctly before linking to the remote device. Is this simple by changing some parameters? For example, could I send the data to my browser (Firefox) or another program to display or write to disk? (All the data is alphabetic).

My router shows my computers as 192.168.0.2 and 192.168.0.3 so I would presumably need to use these ip addresses for testing.

Thank you for any example code, but please make it simple step-by step, not clever and compact!

Martin
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