Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Send hex commands to printer

15 Oct 2012   #1
dotkpay

Windows 7 Ultimate 32bit
 
 
Send hex commands to printer

Hello,

I have been trying to configure a receipt printer, model BTP-R880NP so as to have a center aligned receipt with small margins, but am informed I have to send hex commands to the printer.
How do I send these commands from a web page printing a receipt to the USB printer?

Thanks in advance


My System SpecsSystem Spec
.
15 Oct 2012   #2
Dwarf

Windows 8.1 Pro RTM x64
 
 

I think that you have to make these settings on the printer itself. Take a look at APPENDIX A here: http://www.orient-technologies.com/b...ual%20V1.0.pdf

You might also need to change the settings in the control panel for that printer.
My System SpecsSystem Spec
15 Oct 2012   #3
dotkpay

Windows 7 Ultimate 32bit
 
 

Thanks Dwarf, I have looked through the pdf you linked to before together with the programming manual of the printer. But they don't specify where exactly I should insert the hex code.
For example the statement 1D 4C nL nH sets the left margin but how do I run it exactly.
My System SpecsSystem Spec
.

15 Oct 2012   #4
richnrockville

Windows 7 Pro x64 SP1
 
 

Quote   Quote: Originally Posted by dotkpay View Post
Thanks Dwarf, I have looked through the pdf you linked to before together with the programming manual of the printer. But they don't specify where exactly I should insert the hex code.
For example the statement 1D 4C nL nH sets the left margin but how do I run it exactly.
Dotkpay, welcome to the windows 7 forum.

The best way to send Hex codes to a printer is to create a text file and then copy it to the printer port.
One way is to create from the keyboard the ascii codes by using the alt+number pad to create a file.

from the command prompt.

copy con code.txt
press the alt key and the numberical equivelant for the hex code
when you have finished create the file Press the function key 6 which sends
a control Z (end of file) to the new file you created and closes the file.

then all you have to do is to copy filename lpt1: or whatever the printer port
is.
I have send a page eject to the printer by the following.
copy con lpt1:
ALT+12 then control Z (or f6)
and the page ejects..

I hope this helps.

Rich
My System SpecsSystem Spec
Reply

 Send hex commands to printer




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
How do I capture lpt1 and send to a network printer
How do I capture LPT1 from an old DOS program and send it to a network printer? In XP I used the command: net use lpt1: \\servername\printername to capture the printer port. In the Win 7 XP Mode the I haven't figured out what to use for the servername and the printername. The old DOS program,...
Virtualization
Copy letter from printer to laptop and send as e-mail
Is it possible to copy a letter from my printer to my laptop and then send it as a e-mail?.
Browsers & Mail
how to send a fax (word doc) using my All-in-one printer
If I click on "save and Send" I see no option to send a word document using my fax machine (printer scanner). Shouldn't I be able to do so? And assuming yes, How do I do it? Thanks
Microsoft Office
SEND TO option for printer not working
I located the SEND TO folder, and deleted the fax option, and added a folder I wanted. Both of thes options appear in the send to options list when I right click, and the folder works that I added. After searching the internet the only help I found for adding my default printer, HP 8600, like...
Hardware & Devices
BSOD while using NetBeans to send commands through serial port
Hi, I recently experienced BSOD while using NetBeans IDE to send commands to my robot(project) through serial port. I actually connected a ZigBee module to my Serial Port and sent commands to my robot using interface created in NetBeans. This occurs everytime i use NB IDE.If using emulator no...
BSOD Help and Support
Right click --> Send to --> Send to mail recipient
Hi! One of our customers has a problem when trying to use this method. When he right clicks a document (whether it's .pdf, .doc etc etc) and clicks "Send to", and then clicks "Send to mail...", the only thing that happens is that a empty dialog box appears, with the title "Error", and a...
Browsers & Mail


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 03:36.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App