I'm writing a program at the moment. It's a Kitchen Video Screen.
The software I'm dealing with has the ability to either print via a windows printer driver, or directly via sending escpos commands.
Using the windows print driver, while much easier, isn't as flexible as I need to be able to cipher through the information to give different font properties to certain sections of the print job. (EG I need products to print in large, and I need the products attached to that to print small and in red colour)
So, I'm trying to understand how I can incorporate Escpos within my software
(Also saves me from loading print drivers which is better as it is using less resources)
Escpos is a printing language developed by Epson that allows you to set parameters to the string that's about to be printed, including size, colour.
Could someone give me a hint, this is the next big part of my project, and I'm not to sure where to start.
I'm guessing I need to write a class that has all of the escpos commands, and as a line is read from the incoming port, it would then be encoded as per the class I have created.
My head is saying that I need to write a whole bunch of If statements, but I'm sure there would be a much easier way to do it.