|
Until yesterday we had an old RPG III program using O spec to print a duplex report in what looks like universal font. The spool file contained print commands to handle the duplexing and font. ¬D1 was written to the spool file to handle duplexing and the value &%1B266C30303055&% was written to the spoolfile to handle the margin offset and font I believe. I've never seen it done that way before. Yesterday we changed the printer from twin ax to Ethernet and the duplexing didn't work any more and the print commands printed on the report. I changed the print file override to be DEVD(*AFPDS), and removed the print commands from the O specs. That solved the duplexing and margin problems but the font is now wrong. The font on the device is set to 11. I don't know what that is, but it looks like ASCII text. To me the font is fine, but the people who use the report don't like it and want the old font back. Everytime I change the font on the print file override the font changes, but the alignment of the columns is lost. I believe this is because some fonts don't adjust for blank spaces. I'll include the ovrprtf command that works. When I change the FONT parameter to 4148 the font changes, but the alignment is lost. OVRPRTF FILE(QPRINT) DEVTYPE(*AFPDS) PAGESIZE(88 150) + LPI(8) CPI(20) FRONTMGN(0 0.6) BACKMGN(0 0) + OVRFLW(84) DUPLEX(*YES) OUTQ(&OUTQ) + FORMTYPE(&FORMS) COPIES(&COPIES) HOLD(&HOLD) I'll also include the command I used to create the device. CRTDEVPRT DEVD(PRT07) DEVCLS(*LAN) TYPE(3812) MODEL(1) LANATTACH(*IP) PORT(9100) FONT(11) TRANSFORM(*YES) MFRTYPMDL(*HP8000) RMTLOCNAME('XXX.XXX.X.X') SYSDRVPGM(*HPPJLDRV) PUBLISHINF(*YES) TEXT('Sales Printer') WSCST(QSYS/QWPHPLSRE) Any ideas?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.