Your reasoning is flawless, look @JTRTech tell me something more
It looks that way to me as well. I think @markjw is correct.
@Michel_Aimonino it was a quote from the link you posted in the first place.!
TBH all I read was ‘Adding the printer session for slip printing:’
With reference to the link you provided …
It appears that you may need to send some ESC/POS <XCT>
commands as part of the Printer Template. We need to see the ESC/POS Programming Guide that is specific to that model to figure out what commands it needs to see. The general ESC/POS Application Programming Guide (APG) published by Epson has no specific notes regarding the TM-H6000II
. One of the Tech manuals indicates that the H6000II
supports more commands than the original 6000(I)
ESCPOS Programming manual APG_1005_receipt.zip (2.4 MB)
The part about “IBM / Session / blahblah / etc” has nothing to do with making this work methinks, because it appears it is talking about adding the Printer to an IBM iSeries computer, so I think you can ignore that part.
This bit I think might be important…
Setting up the printer on the PC:
- Google search for the name of your printer and “driver”. I found the TM-H6000 from the following site:
Download - POS - Epson- Start installing the driver, selecting “…Receipt” for the first printer and piggyback the “…Slip” printer on the same port as the receipt printer.
And this part …
Programming:
- download the “Epson ESC/POS Programming Guide” for a reference of valid printer commands (PDF download if you Google search).
- For the receipt printer commands, use the Hex value (e.g. for Initialize Printer (ESC @), set the variable to x’1B40’)
- Use a print file for the output, using the keyword TRNSPY on the printer command and SPACEA(0) so no line advance occurs.
- When printing, do an OVRPRTF command over the print file, using the RPLUNPRT(*NO) setting and route it to the proper outq.
We only have basic needs, so I didn’t have to mess with the font throughout the receipt print, but here’s what I used:
At the top of the receipt:
Initialize (ESC @) use X’1B40’
Standard Mode (ESC S) use X’1B53’
Height 3 Font (GS !) use X’1B2102’
At the bottom of the receipt:
Print and Feed (ESC J) use X’1B4A00’
Partial Cut (ESC i) use X’1B69’
I found that if I tried to use hex commands in the slip printing, the print would reroute over to the receipt print, so any font size manipulation had to be in the OVRPRTF command.
I read from that, you want these <XCT>
commands in the Printer Template:
<XCT>27,64
<XCT>27,83
<XCT>27,33,02
… and …
<XCT>27,74,00
<XCT>27,105
These bits, I don’t understand, but not sure they are applicable anyway - they may be to do with IBM iSeries system:
TRNSPY
SPACEA(0)
RPLUNPRT(*NO)
OVRPRTF
I think the Receipt part (thermal) support ESC/POS which he said it working.
The Slip part (dot matrix) which is not working. I think dot matrix may be does not support ESC/POS. But it is weird that you said it won’t print when you set it to Windows Printer but it print from notepad.
Are you sure that you save it when you change to Windows Printer. Maybe you should try again. Save it and logout and login again and go to see if the setting is Windows Printer before printing it.
even with Windows printer print on white. Only if the first copy on a notepad and after sending the print, then it works
You mean if you turn on printer then:
- Print from Samba with Windows Printer → Just feed paper no text
- Print from Notepad → Print text fine
- Print from Samba with Windows Printer → Now it print text fine
- Print from Samba with Windows Printer → Just feed paper no text
- Print from Notepad → Print text fine
my possible solution may be "save to file print"but I need something that sends the print file every time I update
This will print to text file.
Share the printer.
Open Start → Control Panel → Devices and Printers.
Right-click the CutePDF Writer and select Printer Properties.
In the Sharing tab, decide to share the printer and assign a share name to it.
If you chose, e.g., CutePDF, print using the following command:
print /d:\%COMPUTERNAME%\CutePDF testprint.txt
Q already show you how to run cmd line on the other post.
I do not have CutePDF Writer but XPS Windows and isnt possible to share…
That is example. Type your own printer name.