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.
// 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
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