Intermect PB42 print image - intermec

i am trying to print receipt from windows mobile 5 to intermec PB42 (thermal printer) , i had tried the ESC/P commands also easy print commands .
i tried also ESC/POS from here but still cannot print .
and i found PRN file that contains image and it worked but i cannot generate this format and i do not know what is this format (file link https://www.dropbox.com/s/0wonnt68nltxd4j/PrintPad_Receipt_Demo.prn?dl=0).

Intermec PB series printers used the Intermec Printing Language, IPL. See http://apps.intermec.com/downloads/eps_man/934-013.pdf for details.

Related

How to print QR code using EPL commands from Zebra GC420t printer

I am using EPL commands to print barcodes(Zebra GC420t).
Now i need to print QR code using EPL commands(Zebra GC420t).
Please help to find out the solution.
Suggested: EPL Programming Guide
As seen on the docs, QR codes can be printed with the b (barcode) command:
Format: b(x-position),(y-position),Q,(model),"(qr code data)"
So, if you wanted to print a QR code with a "hello" value it would be something like this
b264,130,Q,m2,"hello"

How to Get some text from the variable in ZPL Command

i have created a simple zpl program. My program Using call a variable, connect with database and uploading in web, this program example:
^XA
^JMA
^PR2
^~SD20
^BY3
^LH20,10
^FO155,152^BY2^BCN,40,N,N,N^FD$USIM$^FS
^A0N,30,30^FO155,197^CI0^FH_^FDNo.SimCard:$USIM$^FS
^PQ1,0,1,Y
^XZ
And result after printing is like
*"Barcode"*
No.Simcard:123456789
My case is how to take just a few numbers in the variable at $USIM$, like a function on the LET that can take several digits from a variable, for example
LET A$="Zebra Quality Printers"
LET B$=A$(1:13)
PRINT B$
Zebra Quality
I want to be able to in my program is only take last 3 digits at $USIM$
*"BARCODE"*
No.Simcard:789
I read the Zebra documentation and it only can in ZBL command, how to convert or make it work in ZPL command ?
Please Help me,
Thank you in advance

How do I obtain ZPL command return value from code

How do I get return value from a printer if I called this command in vb6, on Zebra Setup Utilities it will display information regarding about the printer. I try running this command and print nothing
Printer.Print "${^XA^HH^XZ}$"
Printer.EndDoc

OpenEdge 10.2A - INPUT THROUGH set does not work after Windows Update 1703 on Windows 10

We were using below code to get the name of the computer.
def new shared var cHost as char format "x(40)" no-undo.
INPUT THROUGH hostname NO-ECHO.
SET cHost.
INPUT CLOSE.
DISPLAY chost.
After we have updated our computers (Windows 10 - 1703), it no longer works. It seems SET cHost is the part where it fails. I have tried IMPORT UNFORMATTED cHost but it does not work.
PS: I can get computer name using OS-GETENV("COMPUTERNAME") but I have to do it using INPUT THROUGH statement.
Edit: It seems that it is not only a problem with 10.2A but a more general one. Also it is not just related to hostname but all console applications and ms-dos commands. Now I will try to replace INPUT THROUGH statement with another Progress command if there is any, or try to communicate with existing console applications with some other method.
The first thing I would do is to verify that the 'hostname' command is still working properly from a command window.
Assuming that it is I would code your snippet something like this:
INPUT THROUGH VALUE( "hostname" ).
IMPORT UNFORMATTED cHost.
INPUT CLOSE.
DISPLAY cHOST format "x(60)".
Which might reveal a more useful error message than "it no longer works".
Since COMPUTERNAME meets your needs but you must use INPUT THROUGH for some very mysterious reason you might also try:
INPUT THROUGH VALUE( "echo %COMPUTERNAME%" ).
IMPORT UNFORMATTED cHost.
INPUT CLOSE.
DISPLAY cHOST format "x(60)".
It seems the problem may not be limited to Openedge version 10. I am running a windows 10 winver 1703 device for development, using Progress/Openedge 8.3 and I am no longer able to execute this.
def var a as char format "x(70)".
input through "echo %cd%" no-echo.
import unformatted a.
input close.
message a. pause.
This runs on a windows server 2012 R2, using progress/openedge 8.3.
Where is no longer works, it just exits from within the program when it hits the import command.
Since it seems as a bug, until someone comes up with a better solution, this is how I will change my codes:
DEF VAR cHost AS CHAR FORMAT "x(40)" NO-UNDO.
OS-CREATE-DIR VALUE("c:\temp").
OS-COMMAND SILENT VALUE("hostname >c:\temp\hostname.txt").
INPUT FROM VALUE("c:\temp\hostname.txt").
IMPORT UNFORMATTED cHost.
INPUT CLOSE.
MESSAGE cHost.
This code can be used for other ms-dos commands and console applications as well.
DEF VAR cHost AS CHAR FORMAT "x(40)" NO-UNDO.
OS-CREATE-DIR VALUE("c:\temp").
OS-COMMAND SILENT VALUE("ECHO %cd% >c:\temp\result.txt").
INPUT FROM VALUE("c:\temp\result.txt").
IMPORT UNFORMATTED cHost.
INPUT CLOSE.
MESSAGE cHost.
Thanks for your help.

How to view complete print output in a terminal?

I'm currently working with a software called CleGo , which is written in O'Caml and I use it in the Toplevel mode. This program computes all Clebsch-Gordan coefficients for a given group representation. Unfortuantely, I can't get the complete output in the terminal. I get:
[[[("-1", ("(0,0,0,0,0,0,1,0,)1", "(0,0,0,0,0,0,-1,0,)1"));
("1", ("(0,0,0,0,0,1,-1,0,)1", "(0,0,0,0,0,-1,1,0,)1"));
("-1", ("(0,0,0,0,1,-1,0,0,)1", "(0,0,0,0,-1,1,0,0,)1"));
...]]]
and I need the complete output that is indicated by "..." in the output. Is there some terminal restrictions that restricts the output to a certain length or is this a special problem of the software?
Any ideas or suggestions would be awesome!

Resources