TCP/IP Printing
#1
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
Utility for Sending raw text to a network printer via TCP/IP

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.
Reply


Messages In This Thread
TCP/IP Printing - by AtomicSlaughter - 05-21-2022, 09:53 PM
RE: TCP/IP Printing - by CletusSnow - 05-22-2022, 08:21 AM
RE: TCP/IP Printing - by AtomicSlaughter - 05-22-2022, 07:02 PM



Users browsing this thread: 3 Guest(s)