AFPDS w/overlay is not WYSIWYG

60 pts.
Tags:
AFP
AFP Printing
AFP Workbench Viewer
AFPDS
iSeries
overlay
When printing a *AFPDS spool file with an overlay, variable text data print differently than they display with the AFP Workbench Viewer and will not align properly. Overlay is fine, but text data is all over the page. Using Helvetica 9pt. and printing to a HP8150N printer. What am I missing?

Answer Wiki

Thanks. We'll let you know when a new response is added.

How is your HP printer connected to the 400? Does your HP printer have a IPDS card in it?
The printer is remote and is attached to the client’s LAN. I can’t confirm that it contains an IPDS card, however, it is currently producing similar forms (shipping documents) which contain an overlay combined with database text data.

——————————-
Helvetica 9pt — is a proportional print
The 400 doesn’t generally take this into account in it’s layout.

the 400 sends spaces to reach the column specified. So if you write a field @ column 20 the 400 sends 20 spaces
then the field, if you write the next field at 40 the 400 sends more spaces to pad out to column 40. But since spaces in Helvetica are much smaller then the wider characters the result doesn’t align well.

So you think the columns will line up. But they don’t.
99,999.99 Amount Deducted 99,999.,99
4.45 Amount added 4.45

I’m not familiar with the viewer, if it doesn’t support the font requested then it probably defaults to a fixed font.

Someone will probably tell me how wrong I am, as usual, but you may want to consider a fixed font for your output.

Phil

———————————————————–
Right you are, in obsolete speak “FIXED” in new speak “Uniformly Spaced”

– proportional print has points but Uniformly Spaced print has pitch or cpi (character per inch) 10, 12, 15, 17.5 characters to the inch – a little narrower or alot narrower .. (points go the other way 12 is bigger than 10)

proporational print also sets character height with the points, proportional print character stay the same shape. Uniformly Spaced doesn’t give you control of the character height.

In uniformly Spaced, you set the lines per inch 6 default or 8 (a little tighter). Character height doesn’t change with pitch or lpi. 8 LPI reduces the blank space between the lines.

You should find AFP commands for FONT, CPI, and LPI. Use one value for each thoughout your document.

Phil

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Prime8
    The printer is remote and is attached to the client's LAN. I can't confirm that it contains an IPDS card, however, it is currently producing similar forms (shipping documents) which contain an overlay combined with database text data.
    60 pointsBadges:
    report
  • Prime8
    I should clarify that the RPG program, PRTF and overlay reside on the box to which the printer is attached. I'm only accessing it from a remote site.
    60 pointsBadges:
    report
  • Prime8
    Thanks, Phil; your explanation seems rational. I'm not a Font Master - how do I determine which fonts are fixed versus proportional? Thanks again...
    60 pointsBadges:
    report
  • Prime8
    I have the Font Global Identifiers Table which categorizes fonts into Mixed Pitch, Typographic and Uniformly Spaced (which describes me after struggling with this for 4 days). My assumption is that Uniformly Spaced is analogous to Fixed?...
    60 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following