Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Possibly Related Threads…
Thread Author Replies Views Last Post
Lightbulb Printing to image handle Bhsdfa 8 1,444 12-26-2024, 03:14 AM
Last Post: Pete
  A clean font printing SUB I use sometimes. Dav 4 1,234 08-27-2023, 10:16 PM
Last Post: Dav
  Max font size printing to any screen size. Pete 1 993 05-06-2022, 05:54 AM
Last Post: hanness

Forum Jump:


Users browsing this thread: 1 Guest(s)