Setting Zebra Printer Installation To Vertical - printing

Im printing receipts to a Zebra 2030 printer and need to it to vertical printing.
Im using the rawprinterhelper class from Microsoft to print, but my question is, how would I send the, U1 setvar "device.orientation" "value" , command to the printer.
Thanks is advance for help.

The TTP 2030 is not a ZPL or CPCL printer and doesn't have U1 commands. If you want to print text in vertical you can use ESC o n1 with n1=0 portrait, n1=1 landscape.
You may be better off using the Windows driver and creating a bitmap of your receipt and print this to the printer instead of relying on the text capabilities of this printer.

Related

zebra printer provide keyboard_input for design label in ZPL payload

I use the printer zebra printer model zd410 and have designed a label with some keyboard inputs that I want to provide in a ZPL payload, instead of using their software for actually filling out a formula since we already have the data from the application that should print the labels.
The label has these 4 Variable keyboard input with following prompt texts.
barcode = text
reservation = text
department = text
size = text
So by sending
LABEL.ZPL^XA
^XFE:LABEL.ZPL^FS
^XZ
I can print a label with the empty values. I was hoping that I could fill them out by doing something like:
LABEL.ZPL^XA
^XFE:LABEL.ZPL^FS
^department=M3
^size=XL
^reservation=0008734
^barcode=000000000001
^XZ
However this does not work, I was wondering how one would achieve something similar.
What you want to do is possible, but requires the recalled format to contain "placeholders" where the data is to be displayed. In the E:LABEL.ZPL format, you need to define numbered fields like:
^FO150,125^A0N,36,20^FN1^FS
Where the ^FN1^FS is the placeholder for the field #1 data. The ^FN#^FS can be placed in the format anywhere you would normally put a ^FD...^FS data field (text and barcode data).
Then you recall the format and supply the data for the placeholder using:
^XA
^XFE:LABEL.ZPL^FS
^FN1^FDMY VALUE^FS
^XZ
That will substitute ^FDMY VALUE^FS for any occurrences of the ^FN1^FS placeholder in the recalled format.

How can I read the content of a data matrix into multiple cells in excel

I want to use a barcode-scanner (+ data matrix) to perform an input in an existing excel file (*.xlsx). The content of the scanned code should be devidied into two cells, split accoring to a tabulator symbol.
I have generated the following data matrix with the content Hans<tab>Müller where <tab> equals the decimal character code of 9 in ASCII.
Scanning the matrix in Notepad++ (focus in Notepad, scanning the matrix) results in the correct result. But if I try the procedure in excel (selecting a cell, scanning the matrix), the input is HansMüller. I expected "Hans" in the selected cell and "Müller" in the cell next to the selected one. So, what am I doing wrong?
How can I read the content of a data matrix into multiple cells in excel?
Update:
I am using the scanner ElmiScan ECR14 from elmicron. The website http://codecorp.com/ConfigGuide/?product=CR1400 provides a list of all configuration "codes" (CR1400 equalls ECR14).
If I enable Control Character Input - Ctrl + Character as suggested by Brian, Excel reads HansMÄller and still ignores the tab.
I am getting "Hans<tab>Mller" in plain old Notepad, and HansMller in Excel indicating that Excel is interpreting the <CTRL-I> as a "let's start typing
in italics now". My system is probably dropping the "ü" because of my U.S. keyboard.
When I copy from Notepad into Excel, however the embedded tab character has the desired result and advances to the next cell. This indicates to me that the scanner is in the default state of "Disable Function Key Mapping" and has interpreted the <CTRL-I> you have in the Datamatrix barcode as the keystroke
<CTRL-I> instead of the <TAB> key.
The solution is to place the scanner into "Enable Function Key Mapping" mode, which is not the default mode by scanning the Function Key Mapping barcodes in your scanner manual.
EDIT: So, I've reviewed the website and 1400 Configuration Guide and needless to say, they disagree. So it looks like there are a few different options for setting keyboard language support, which is where I think the problem lies.
I would start with the Config Guide and test modes B4, D3, D2, C3, B2, and B3 in that order.
Then I would move onto the website based guide and check out each of the following modes just to be sure.
The fact that after your previous experiment the "ü" turns into a "Ä" tells me we are on the right track. One of these settings should produce an ASCII <TAB> keyboard character for Excel. If none of these works, I would contact technical support at Elmicron.

Escp command to print table border

I am working on Epson dot matrix printer and printing using Esc/p command. But I have problem when i want to print a border of table. The table border will use the extended ASCII :
So I want to use character : 179, 180, 185, 186, etc.... But when I send it to printer, it print strange character. So how to make it work?
I am trying to select character set but it seems still not work. If anyone know about, please let me know.
There are several sets of ASCII tables in the printer.
The printer documentation shows which table is default.
To send extended character to printer, it must be written as hex byte:
data="\xC9" # example extended byte
If you need more precise answer, please let us know which printer you are using, show example of your code.

Print Cyrillic symbols in barcode with Zebra

I'd like to know if there is a way to print Cyrillic symbols in barcode using Zebra printer?
The printer is Zebra GK420t. Language is ZPL.
Opposite to that question I'd like to print not text but barcode that includes Cyrillic symbols which could be later recognized by scanner.
Code sample:
^XA
^LH10,40
^CWT,E:ARI000.FNT^CFT,20,20^CI28
^FO60,330^BCN,100,Y,Y^FD^Part^FS
^XZ
In my app i replace ^Part with part code which contans Cyrillic letters. String is encoded to UTF-8 and byte array sent to printer:
byte[] bytes = System.Text.Encoding.UTF8.GetBytes(ZPLstring);
You should be able to print a bar code that includes Cyrillic symbols if you use the Code-128 bar code encoding. You have to set the code page to 1251 for Cyrillic.
You should read the ZPL documentation and determine how to set the mode to use Code-128 and code page 1251.
http://www.idautomation.com/barcode-fonts/code-128/user-manual.html
The answer to this question might also help you out:
Unicode characters on ZPL printer

print web on dot matrix receipt printer

I need to print a receipt from my web based apps using dot matrix printer epson tm-u220d (pos printer).
I need to know, should I generate the receipt in html or in plain text ?
I ever saw some commands for dot matrix printer to change the font size, line feed etc .. but I don't remember that commands. if I have to use plain text I need to use that commands. anyone knows where i can get the references ?
Thanks
There is a very good chance that these printers support Esc/P2 which was the Escape codes required to do some formatting on the printer...Here's a link to the RawPrinterHelper...
How are you connected to the printer? Parallel, USB, You may need to add a generic text print driver to allow the means of writing raw escape code sequences to be sent to the printer...for an example, here's an example code that needs to be sent to the printer, depending on how you implement this, to give additional flexibility, the class could parse for simple html codes and re-interpret them as Esc/P2 codes
This will be printed in bold
|
V
0x1b0x69This will be printed in bold0x1b0x70
0x1b is Escape, 0x69 is E (Turns on Bold)
0x1b ' " , 0x70 is F (Turns off Bold)
It appears that this printer has a windows driver:
http://www.posguys.com/12_12/Epson-TM-U220_502/
If that is the case, then you can try to print via html. If that doesn't work and you have the ability to create pdf's, you can print the pdf to the windows driver and you should be set. Most pdf generation libraries permit changing the size of the paper, so with some experimentation you can probably make it work. I actually have a web app that does this ... it generates a pdf sized for the printer and the user prints to a label printer from acrobat.

Resources