×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How to Print a "Control" Fonts Character to POS printer?

How to Print a "Control" Fonts Character to POS printer?

How to Print a "Control" Fonts Character to POS printer?

(OP)

The Model of POS Printer is Epson TM-U210 Series which can be connected a cash drawer with the features that can open a cash drawer through the "Control" font "A" sending to the COM Port POS Printer.

How to print a "Control" Fonts Character "A" to POS Printer?
Using Report? Letter Label? or Using the command "???"

I have try to use mscomm activex control, but i can't set portopen to true, any suggestion?


sohrab100

RE: How to Print a "Control" Fonts Character to POS printer?

Hi sohrab100,

I assume this means that you should send a "control-A", that is, ASCII code 01.

Try issuing this command:

??? CHR(1)

Let us know if it works.



Mike Lewis
Edinburgh, Scotland
www.ml-consult.demon.co.uk

RE: How to Print a "Control" Fonts Character to POS printer?

(OP)
hi Mike Lewis,

It's not CTRL-A, it's Font: "Control" with character "A" printed to the printer.

sohrab100

RE: How to Print a "Control" Fonts Character to POS printer?

send the foluing char directli to printer and it should work

??? ESQ
??? "{10}"

fonts:

ESQ GRA        = "{27}{33}{54}"
ESQ MED        = "{27}{33}{33}"
ESQ NOR        = "{27}{33}{0}"
ESQ PEQ     = "{27}{33}{1}"

Drawer:

esq = "{27}{112}02"

cuting paper

esq = "{27}{105}"

RE: How to Print a "Control" Fonts Character to POS printer?

Have you tried using?:

??? "A" Font "Control"

Dave S.  

RE: How to Print a "Control" Fonts Character to POS printer?

(OP)
hi cjulio,

What do the code means? It work fine!
I have seems one more method ESC\POS manual, it is as follows:

???chr(27) + chr(112) + chr(1)  + chr(25) + chr(25)

Is there any different?

Also, when i try both method, for the cash drawer locked with key, i can still open it in both command, is it the problem of cash drawer or the problem of code so powerful?

sohrab100

RE: How to Print a "Control" Fonts Character to POS printer?

??? "A" Font "Control"
Translated, means print the character "A", directly to the printer port, using the font named 'Control'.  
Since you can use the printer control codes you mentioned, the 'Control' font is communicating with the printer driver and taking the "A" and effectively converting it to "chr(27) + chr(112) + chr(1)  + chr(25) + chr(25)" to send to the printer port or drawer.
Since both commands will open the locked drawer, I'm guessing you either need to use different sequences, or there is a problem with the drawer not recognizing the lock/lock status.

Dave S.  

RE: How to Print a "Control" Fonts Character to POS printer?

The manual for this POS device is available here http://support.epson.ru/products/manuals/200001/apd-driver.pdf

It seems to me that with all the driver software properly installed, the right way to use this "Control" font would be:


SET PRINTER TO NAME whateverThePrintersNameIs
SET PRINTER ON
?? "A" FONT "Control"
SET PRINTER OFF


(similar to what was mentioned above, but the VFP docs don't say that the "???" command can take the FONT clause)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close