Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[MICROS 9700 v4.0] - ESC/POS Commands to print text with BOLD on ISL script

Status
Not open for further replies.

Mauriciose

IS-IT--Management
Oct 26, 2010
33
CL
Hi, My request it's very simple.. I need some example to print in bold in isl script. I've a TM88V Epson Printer with IDN port.

I'm trying this (as example), that's work fine on TM88IV, but in but doesn't work in TM88V:

startprint @RCPT
printline chr(16), chr(155), "@"
printline chr(16), chr(155), "E1", "COUPON", chr(16), chr(155), "E0"
printline chr(16), chr(155), "E1", "-------", chr(16), chr(155), "E0"
endprint

I can't print emphasized, bold, center text... ANY IDEA?

Regards!

 
Use @DWON - Prints the following text or variable fields double-wide. Single- and double-wide characters may be mixed on the same line.

In the snippet below any test after @DWON will be "Double Wide", which is as close to Bold you will get.
Code:
printline @DWON, " Coupon: $ 20 Off Purchase of $75"          // All Shows Double Wide (DW)
printline " Coupon: ", @DWON, "$ 20 Off Purchase of $75"      // Eveything after @DWON is Double Wide; Coupon: is Single and not affected

// Other Examples
Printline "Print line"                   // prints in black
Printline @redon, "Print line"           // prints in red, If Printer has a Ribbion and not Termal
Printline @dwon, "Print line"            // prints in black, double-wide
Printline @dwon, @redon, "Print line"    // prints double-wide in red ink   // If Printer has a Ribbion and not Termal

As for Centered, i'd have to check on this, I am not sure if you could just use the @CENTER commant. Keep in mind that anything longer than 32 characters will be kicked to the next line on the receipt paper.

Example:
Code:
printline @CENTER, "TEXT TEXT TEXT"
printline @DWON, @CENTER, "TEXT TEXT TEXT"
 
Thansk hosehead78.

I've this commands, but I need ESC/POS commands to Epson TM IDN printers. Do you have some examples like this:

. printline chr(16), chr(155), "@" --> to initialize print
. printline chr(27), chr(69), chr(49), "COUPON", chr(27), chr(69), chr(48) --> to print 'COUPON' in BOLD

Any help will be powerfulll ;9

Thanks.

MSE
 
So you are printing this receipt outside of Micros then?

Justification (Not using Center)
ESC a [ number ]
0 = Left-Align
1 = Center-Align
2 = Right-Align

ESC ! [number]
16 = Double Height
32 = Double Width

Double Strike
ESC G [ number ] - 1 to enable, 0 to disable

Emphasis - similar to Double Strike
ESC E [ number ]
1 to enable, 0 to disable
 
Thank hosehead78.

Yes, I'm printing additional document with customer receipt. This works fine, the document is printed. But with the ESC/POS command to print bold, emphasized, doesn't work.

You see, this simple script works fine in TV88III.

startprint @RCPT
printline chr(16), chr(155), "@"
printline chr(16), chr(155), "E1", "COUPON", chr(16), chr(155), "E0"
printline chr(16), chr(155), "E1", "-------", chr(16), chr(155), "E0"
endprint

COUPON --> was printed
----------


Now, on the TM88V, this was printed:

@
E1COUPONE0
E1-------E0


I need some examples or the ESC/POS for Epson Printers IDN ports (MICROS). Those are different to ESC/POS standar from Epson.

Thanks, I'll be waiting for any ideas.

Regards
 
Are you sending the 2nd print job via the ISL script or outside?

by the looks of this (code below), it is starting in ISL. How are you calling the 2nd print job?
startprint @RCPT
printline chr(16), chr(155), "@"
printline chr(16), chr(155), "E1", "COUPON", chr(16), chr(155), "E0"
printline chr(16), chr(155), "E1", "-------", chr(16), chr(155), "E0"
endprint

 
Hi,

. Startprint --> Begin the print job for @RCPT (is the ISL Printer Name). EndPrint command ends the print session-
. printline --> Begin the print line. You not need to be printed as a job.


Let know and thanks again for sharing [thumbsup2]
 
So the ISL script is a single function for both print jobs, the main receipt and the 2nd one?

If you are printing within the ISL script using StartPrint, PrintLine and such, you don't need the other functions, as the ISL script will see the line (below) as what it needs to print. So chr(16),chr(155), "E1" will print as you see them.

printline chr(16), chr(155), "E1", "COUPON", chr(16), chr(155), "E0"
OUTPUT: E1COUPONE0

Hence why the output is the same as what you are telling it to do in the script.

The ESC/POS commands are if you are calling another file outside of the ISL script. You need to use the @DWON option as I stated above. That will print DoubleWide, which is the closest to Bold you will get.
 
I'm not sure hosehead78... you'll see. I have the same lines in the original ISL script running on TM88IV and works fine. Now, the same lines, the same script in the TM88V, doesn't work. I checked the DWS1, DWS2 and the back DSW and they are in the same position.

I don't need use @DWON, it's too much wide. With the ESC/POS Command I can put more than 32 character per line. I can put bold and not wide. Again, the ESC/POS Command works fine on TM88III and TM88IV. But on the TM88V, doesn't work.

Something I'm not seeing... [ponder]
 
Could be something that isn't allowing the V to process it through the ISL script. Let me check, I have a few IV and V's.
 
Have you tried doing something like this. I can't remember if emphasized mode was what I used last time I needed to print in bold, but this turns on emphasized mode.

Code:
event print_trailer : my trailer

[indent]var boldOn : A3[/indent]
[indent]format boldOn as chr(27), chr(33), 8[/indent]

[indent]var emphasizedLine : A200[/indent]
[indent]format emphasedLine as boldOn, "This is bold text"[/indent]
[indent]startprint @chk[/indent]
[indent]printline emphasizedLine[/indent]
[indent]endprint[/indent]

endevent
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top