Thread: I am trying to Print from an ESC/POS Epsom TM-T88V Printer

  1. #16
    Registered User
    Join Date
    Mar 2019
    Posts
    50
    And sorry to repost but the most important part that none of the mnuals say, to direct write how to I send the code to the printer, i can for example go into cmd prompt and send an echo "hello world" > COM3 cmd and it writes, but how do i go about setting up a file that writes to the printer. Im missing something in the middle of the code that contains the commands and the actual printer. I see in the example code above a filename is defined, I assuming that file is what the commands are written to but how do you direct the file to send to its contents to COM3?

  2. #17
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    37,224
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #18
    TEIAM - problem solved
    Join Date
    Apr 2012
    Location
    Melbourne Australia
    Posts
    1,820
    Your first goal should be to get a serial port up and running - Follow Salem's link. Or Serial Communication With C Programming - C And C++ | Dream.In.Code

    I use a USB/RS232 converter for this sort of thing - (Although I did see a second option - TCP connection in the C# link (?) Is that something that your printer is capable of? There is a lot out there for TCP, so that is a very good option if it has it)

    Because you are using hardware directly from code (COM port or TCP) you are going to use non portable code. My advice if you wanted to port it to different systems is to keep that code in a different source file.

    Once you have comms working, start with a "hello world" to the printer

    After that is happening, you can start experimenting with different things such as bar codes...

  4. #19
    Registered User
    Join Date
    Mar 2019
    Posts
    50
    Quote Originally Posted by Click_here View Post
    Your first goal should be to get a serial port up and running - Follow Salem's link. Or Serial Communication With C Programming - C And C++ | Dream.In.Code

    I use a USB/RS232 converter for this sort of thing - (Although I did see a second option - TCP connection in the C# link (?) Is that something that your printer is capable of? There is a lot out there for TCP, so that is a very good option if it has it)

    Because you are using hardware directly from code (COM port or TCP) you are going to use non portable code. My advice if you wanted to port it to different systems is to keep that code in a different source file.

    Once you have comms working, start with a "hello world" to the printer

    After that is happening, you can start experimenting with different things such as bar codes...
    THANK YOU THANK YOU THANK YOU!!!
    This is the very information I needed to start with the most but have allowed myself to get distracted from. YOU guys are so awesome! Thanks a million.
    Last edited by Ctylersills; 1 Week Ago at 12:37 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. print out to a printer, need help
    By IXxAlnxXI in forum C++ Programming
    Replies: 1
    Last Post: 03-25-2007, 01:24 AM
  2. Print pdf to network printer
    By rkooij in forum C Programming
    Replies: 9
    Last Post: 11-02-2006, 08:33 AM
  3. How to print to printer
    By zigona in forum C++ Programming
    Replies: 5
    Last Post: 11-16-2001, 03:15 AM
  4. Print to the printer
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 10-18-2001, 10:22 AM

Tags for this Thread