Hello,
I have an application running on a remote server and have a customer accessing application via remote desktop. I have a printer (Intermec PD41 - connected via ethernet with assigned IP address) connected to customer's local workstation and I need to use SENDDATA (listed below) function to send printer code (Intermec Fingerprint) to printer.
Is it possible to send data to local workstation's IP address via remore desktop? If so, can someone provide an example?
Sincerely,
//-----------------------------------------------------------------------------
FUNCTION SENDDATA( nPort, cIP, cMsg )
LOCAL oSocket := TSocket():New( nPort )
oSocket:bConnect := { || oSocket:SendData( "MSG " + cMsg ),;
oSocket:End() }
oSocket:Connect( cIP )
RETURN NIL