Midrange News for the IBM i Community


Posted by: Bob Cozzi
Rogue Programmer
Cozzi Productions, Inc.
Chicagoland
How to Rotate a Printer File OVL (Overlay)
has no ratings.
Published: 24 May 2012
Revised: 23 Jan 2013 - 4111 days ago
Last viewed on: 26 Apr 2024 (7798 views) 

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.

How to Rotate a Printer File OVL (Overlay) Published by: Bob Cozzi on 24 May 2012 view comments(4)

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?

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS

(Sign in to Post a Comment)
Posted by: sarge
Premium member *
United States
Comment on: How to Rotate a Printer File OVL (Overlay)
Posted: 11 years 11 months 2 days 17 hours 44 minutes ago

what about the ChtPrtF command. it has the rotation and degree in it for overlays.

 

 

Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: How to Rotate a Printer File OVL (Overlay)
Posted: 11 years 11 months 2 days 15 hours 30 minutes ago

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.

Posted by: sarge
Premium member *
United States
Comment on: How to Rotate a Printer File OVL (Overlay)
Posted: 11 years 11 months 2 days 11 hours 9 minutes ago

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 :)

Posted by: DaleB
Premium member *
Reading, PA
Comment on: How to Rotate a Printer File OVL (Overlay)
Posted: 11 years 11 months 2 days 1 hours 32 minutes ago

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.