I am using the printer object to print line by line a report. I am building up the report line in a variable string and then output the string directly to the printer. This allows me to specify variable gaps/columns for a multi-part report that I couldn't get to work another way!
The problem is that I need to print some figures/text in colour, while most of the report is black on white.
I cannot find a way to get characters 1-45 to print in black 50-55 to print in red and chars 75-78 in yellow.
Is there some way - via attribute bytes for example - that I can alter the way text is rendered within a string?
Can anyone help please?
The problem is that I need to print some figures/text in colour, while most of the report is black on white.
I cannot find a way to get characters 1-45 to print in black 50-55 to print in red and chars 75-78 in yellow.
Is there some way - via attribute bytes for example - that I can alter the way text is rendered within a string?
Can anyone help please?