×
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 Execute PCL Command (ESC X m nn) on Epson Thermal Printer using C# to increase Font Size

How to Execute PCL Command (ESC X m nn) on Epson Thermal Printer using C# to increase Font Size

How to Execute PCL Command (ESC X m nn) on Epson Thermal Printer using C# to increase Font Size

(OP)
const char ESC = '\x1b';

// Initialize printer
sb.Append(ESC + "@"); <-- Working too

sb.Append(ESC + "E" + (char)1); <-- Bold Weight it Works too
// Align center
sb.Append(ESC + "a" + (char)1); <-- it works too

Select font by pitch and point: ESC X m nn <-- so i tried it on my code by doing this:

sb.Append(ESC + "X"+ (char)15); it did not work but there is no error on code.
sb.Append(ESC + "X"+ (int)15); also tried this still the same.

sb.AppendLine(" " + "HELLO WORLD!" + "\n");

output:

it was Bold
but the text is still normal size not bigger

how do i proper execute the ESC X m nn PCL Command
same as i had on the bold weight ESC A (char)1

please help my reference document are this one.

http://support2.epson.net/manuals/english/page/epl...
https://files.support.epson.com/pdf/general/escp2r... <-- Page 104 of the PDF Doc.

RE: How to Execute PCL Command (ESC X m nn) on Epson Thermal Printer using C# to increase Font Size

Quote (migz117)

Select font by pitch and point: ESC X m nn <-- so i tried it on my code by doing this:

sb.Append(ESC + "X"+ (char)15); it did not work but there is no error on code.
sb.Append(ESC + "X"+ (int)15); also tried this still the same.

It looks like the definition is requiring [Esc][X][m][nn]. But, you're only providing [m]. You'll need to provide the second character on there. Font pitch is [m] I assume. Font point size is [nn].

I've done some programming on label printers before. I always found it best for development and testing to edit what I want it to do in a test file. Send that test file to the printer to make sure it's working.

After that, I would code it into my programming language and save the output of what I would send to the printer to a file and do a difference comparison (sometimes in hexadecimal) to see if they were the same.

When they're the same, you know it will work.

--
Rick C. Hodgin

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