How can I send escape characters to a network printer to change the font, orientation, etc? We currently do this with a printer interface module using "passthrough". When we try to send escape characters (hex 1B) directly to the network attached printer, the host print transform utility appears to strip out these characters even though we code the print file to not replace unprintable characters. Is this an EBCDIC to ASCII translation issue?
Escape characters are almost always stripped out by IBM printer interfaces. If you are doing a lot of coding to try to control fonts, orientation, etc on print outs, I assume you must be doing this to make your reports look better, possibility with the goal of giving the look of customized forms. While this is an admirable goal, I'd suggest that the amount of time involved in customizing these printouts can quickly become a significant task. You would probably be better off researching and investing in one of the forms design packages available, then either using Host Print Transform to print the resultant *AFPDS spool file, or use a tool to convert the spool file to a PDF document that will print anywhere, with guaranteed fidelity.
Dig Deeper on Connecting to Printers
To print a single document with all of the one page reports generated by the iSeries you need to first create a program that bundles all the ...continue reading
Use forms design and data mapping tools to create soft forms that the print data can be dragged and dropped onto rather than using preprinted medical...continue reading
Issue an override print file command before copying a file to QSYSPRT in order to acknowledge control characters without writing a program on the AS/...continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.