Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.
I need to print some REVERSE IMAGE TEXT on an AFP-compatible printer (a receipt printer) in reverse image (white on black) and don't see anything in the DDS manual regarding this. I saw one comment, online that suggests there may be built-in fonts that support black on white printing.
If there isn't then I'll have to do something like a lline above and below, or perhaps a BOX around the text.
Correct. It's the font, not an attribute you can modify after the fact.
In IBM's AFP Font Collection, there are three that I could find (and really only two): Bookmaster Reverse, Bookmaster Specials Reverse, and Gothic Reverse. These fonts are resources that are downloaded to the printer, so should be the same on any AFP printer.
There may also be a reverse font built into your printer. You'd (most likely) get to these by Font Id (FGID) with the FONT() keyword. I'd look for a report menu on the printer's control panel to get a list of what's installed. But, of course, this would be printer specific.
I've never done this, but you may also be able use a TrueType or OpenType font (assuming you can find a reverse font). See the Advanced Function Presentation reference, and also DDS FONTNAME() keyword.
Thanks Dale. FYI, I do have the ability to print reverse image on the printer. I do it now.
But today I use the Transparency keyword in the PRTF DDS and just send the data stream (command sequence) that causes it to turn on reverse image. I am trying to move to a generic AFP solution so that we can write these reports to any printer with relatively similar results.