05-21-2022, 09:53 PM
(This post was last modified: 05-21-2022, 09:56 PM by AtomicSlaughter.
Edit Reason: testing data still in code
)
Code: (Select All)
Sub TCPPrint (IP As String, Port As String, toPrint As String)
CRLF$ = Chr$(10) + Chr$(13)
x = _OpenClient("TCP/IP:" + Port + ":" + IP)
toPrint = toPrint + CRLF$
Put #x, , CRFF$
End Sub
Sub TCPEndPrint (IP As String, Port As String)
CRFF$ = Chr$(10) + Chr$(12)
x = _OpenClient("TCP/IP:" + Port + ":" + IP)
Put #x, , CRFF$
End Sub
Use the first sub to send the data, then when finished send the second sub and it will initiate the form feed and spit the sheet out.