Print a company logo using rpg

25 pts.
Tags:
AS/400 printing
RPG
How do you print a company logo using rpg on a laser printer?
ASKED: October 28, 2008  3:37 PM
UPDATED: November 3, 2008  3:40 PM

Answer Wiki

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

If you have AFP installed, one possible way to do this is by creating an “overlay” for your document.
Think of this as a form that you are merging with your standard RPG output. This would allow you to place the logo on a page in a consistent location, and have the data be a variable.

An easy way to do this is to create a document in a program like msWord that has the placement of the logo and any other constant “form” data that you want to place in the output. Then use the AFP printer (that was installed during iSeries Operations Navigator installation) to print the document to a file.

Then go into iseries navigator, AFP Manager, PSF Configurations, and uder AFP Manager tasks you will see “import an overlay”. Follow that wizard to upload the object to the iSeries.

In your printer DDS, you will add a record format with the following coding :

A R RCD011 TEXT(‘Overlay selection’)
A OVERLAY(&LIBL/&OVLN &POSD +
A &POSA)
A*
A LIBL 10A P TEXT(‘Overlay Library’)
A OVLN 8A P TEXT(‘OverLay name’)
A POSD 5S 3P TEXT(‘Position offset down’)
A POSA 5S 3P TEXT(‘Position offset Across’)

Compile the printer file as an *AFPDS

In your program just populate the all the variables (I usually use zeros for the 2 position codes), and then “print” this record format at the same time you print your headings.

You can get more information about this from the iSeries infocenter…

Phil C

Discuss This Question: 2  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
  • 126
    please improve u r answer ,when u r aswreing imagine that u r in company and give answer
    170 pointsBadges:
    report
  • Pcatlin
    126... There really isn't much more to it... It feels a little like "hocus pocus" but it actually works pretty well. The true key to this is getting the msWord document created correctly as an overlay using the AFP printer driver. Once that's done, the rest of the process is very simple. We semi automated the process by allowing the end user to create the word document, and save it to the IFS. We then created an import screen that copies the IFS file to a physical file and calls the CRTOVL command. Once they run it, the program starts using it. You might also be able to do this without modifying your program by placing the overlay name in an OVRPRTF command. I haven't tried it that way but it should work.
    200 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