|
Steve Instead of the CHGPRTF, you can use the same PAGESIZE parameter on an OVRPRTF before entering STRQM. A user-defined STRQM could be placed above QSYS that has this OVRPRTF in it. Another way to make things portrait or landscape with the "automatic" settings in a PRTF is to arrange this page size so that it fits a certain paper size. There are some rules for this, e.g., if you PAGESIZE, together with CPI and LPI results in a page that is portrait letter -- CPI=10, LPI=6, PAGESIZE(66 85). From the help on the PAGESIZE parameter: ======================================== The page size must be specified with reference to the way the data is printed on the page. For example, if using 8.5 inch wide by 11.0 inch long forms and printing at 6 lines per inch with a 10-pitch font, specify PAGESIZE(66 85) PAGRTT(0). However, to rotate the page, specify the page size for an 11.0 inch wide by 8.5 inch long page and enter PAGESIZE(51 110) PAGRTT(90). ======================================== There's more about this, I'm sure, in one of the Printing xx redbooks. And someone on the list can certainly say more. -------------- Original message -------------- -snip- > > One way to deal with the orientation issue (see Caveat below): > > Change the QSYS/QPQXPRTF printer file CPI to 15 and width to 198, like this > (permanently): > > CHGPRTF FILE(QSYS/QPQXPRTF) PAGESIZE(*N 198) CPI(15) > > (although I'd probably use CRTDUPOBJ to copy it into your own system library > that is higher than QSYS in the system portion of the library list (see the > QSYSLIBL system value) and change the the copy of the printer file, not the > one in QSYS library) > > The reports will now print in landscape orientation, whether printed > interactively or in batch. > > The Caveat: > - Unfortunately, with this change, reports created with Query Manager will > _always_ print in landscape orientation. > -snip-
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.