I print receipts using the Dot Matrix Printer in C #.
The printer works great, prints characters in bold, large, etc.
The problem is that there are ribbons in the matrix matrix (black, red)
How can I indicate which text should be printed in black or red.
I use BinaryWriter to pass string and ascii code to get the desired result.
Example:
bw.Write((byte)0);
byte[] bytes = Encoding.ASCII.GetBytes(text);
foreach (var by in bytes)
{
bw.Write((byte)by);
}
Some link to sample code:
Code example
Any help is appreciated.
UPDATE:
Used printer Sewoo SLK-D30
Sewoo SLK-D30
The document says:
Command HexCode Description
DC3 <13>H Red color print command
But unable to continue.
Moons