×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Your AFP page has two origins. Unfortunately the origin for the text is
the only one that gets moved with PAGRTT. So for TEXT you have a landscape
page, but for GRAPHICS you have a portrait page. i.e. your across is still
8.5 inches and your down is 11. Just give it a quick try, flip your
original across and down positions for the graphic.

If you are developing a new app, I recommend making your page size the
orientation that you need to print the bulk of the page. i.e. Make a
landscape page of 11 x 8.5 and avoid the use of PAGRTT.

If this is still too confusing, please give me a call.



William Scott
Advisor, Solutions Engineering
Canon Solutions America, Inc.
5600 Broken Sound Blvd., Boca Raton, FL 33487
www.csa.canon.com
wscott@xxxxxxxxxxxxx
T 561.997.3256






From: Roger Harman <roger.harman@xxxxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Date: 05/26/2016 02:45 PM
Subject: AFP Overlay in landscape - margin issue
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>



I'm trying to overlay a logo on a landscape report. I've done this fine
in portrait before.


For some reason, the logo is not printing at the top of the page but a
couple of inches down. I've tried a number of combinations but can't get
it to flush up to the top margin.


The overlay was created in MS-Word using the 600dpi AFP driver. Page was
landscape and the graphic placed centered at the top margin.


Here's the OVRPRTF (in the RPG):

CmdStr = 'OVRPRTF FILE(EWS305PT) DEVTYPE(*AFPDS) '
+ 'PAGESIZE(66 132) OVRFLW(62) PAGRTT(90) '
+ 'FRONTOVL('
+ %trim(Logo) // Logo is a 10-char name
+ ') OVRSCOPE(*JOB) HOLD(*YES)';


Suggestions??


TIA......


Roger Harman

COMMON Certified Application Developer - ILE RPG on IBM i on Power






As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 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.