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 have an old program that uses "REPORT" as its program-described print file.
In addition about 12 other programs in the same job stream use "REPORT" as their printer files. It is basically a clone of QPRINT from what I can see.
Anyway, apparently 1 of these 12 reports uses an OVERLAY (background print image) when the report is printed. Unfortunately when I do an OVRPRTF and include the overlay, it is 90 counter-clockwise from what it should be.
I can't see anything on OVRPRTF that allows me to rotate the OVL itself 90 clock-wise. So I created a new print file using DDS, and included in it the record-level keyword:
OVERLAY(MYOVL 0.0 0.0 (*ROTATION 90))
But I get some goofy runtime error "record format not specified on BOBSFILE".
Is there anyway to rotate an OVL after-the-fact rather than use a custom PRTF?
what about the ChtPrtF command. it has the rotation and degree in it for overlays.
What command? There is a PAGRTT parameter that rotates the page, but not the overlay.
I ended up doing that anyway. I set page rotation to PAGRTT(270) to rotate it counter-clock wise by 90 degrees and the OVL stayed oriented "wrong". So it sync'd up.
that's why i dont type for a living....well, not to write letters, anyway.
it should have read "ChgPrtF".
-Sarge 'the fat finger' Soldier :)
Does say in DDS Ref that the *ROTATION on OVERLAY keyword only works for certain printers. I'm guessing 1) you probably aren't using one of those printers, 2) neither is anyone else, and 3) you're probably using host print transform, which doesn't support the *ROTATION thing (at least, it's not in the list in the DDS Ref). I'm thinking you may need to create a new *OVL object that's rotated the way you want it.