I am trying to change an AS400 print file so that we can print some fields larger than others. The file is printing to a laser printer via client access print emulation session. I have tried to use the FONT keyword but it's not making a difference. Any ideas how I can acomplish this? Thanks
Software/Hardware used:
ASKED:
February 3, 2011 3:27 PM
UPDATED:
March 14, 2012 1:59 AM
Here is an example that is working for us.
A R HEAD01A * A* $CONAM 32A 1 1 A $DIVSN 32A 4 1FONT(761 (*POINTSIZE 12) ) * A 86 2 34'* CANCELLED ORDER *' A HIGHLIGHT A 87 2 34'* HISTORY ORDER *' A HIGHLIGHT A 42 1 48'Fax Date:' A 42 UDATE 6S 0 1 58EDTCDE(Y) A 42 1 68'Fax Time:' A 42 TIMEX 6S 0 1 78EDTWRD(' 0: : ') * A $ADR1 55A 5 1FONT(1051 (*POINTSIZE 10) ) A $ADR2 55A 6 1FONT(1051 (*POINTSIZE 10) )A warning message is issued at create-time if a FONT DDS keyword is specified in a file created with DEVTYPE(*IPDS) and FONT(*DEVD). For SCS printer files, the FONT keyword is ignored when the record or field is printed. For IPDS printers, the FONT keyword can be changed at the record or field level. Use CRTPRTF with DEVTYPE(*IPDS) or *AFPDS
Please provide more information what you are doing and the printer you want to use. Aren’t you using HPT on the iSeries for printing on your laser printer? If YES, what is the printer device description? To use different fonts you need to specify individual font entries in the customized WSCST. Also, the printer file has to be *AFPDS.
And please avoid automatic COR by defining the correct paper size. No matter which font you use in de DDS, the paper size is determined by the LPI * LINES (length) and CPI * CHARACTERS (width) of the PRTF. Assuming you use *ROWCOL for the measurement method . This reflects the spacing as well.
For many years we have used printers attached via TCP/IP which only have an output queue description and no device description. Most printer are HP laser jets.
Host Print Transform is *YES, device type is *SCS.
We do not use a workstation customizing object that references fonts. It is all quite vanilla. This setup handles various fonts, including MICR for check printing.
I do not believe you need to get as complicated as one answer suggests.