MartinRJ Newbie

Joined: 06 Dec 2009 Posts: 1
|
Posted: Sun Dec 06, 2009 8:19 am Post subject: Sending Calc data to a remote device in Basic |
|
|
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 |
|