There are always commercial products - I worked for a company that had some apps - but this is not a <verndor> response - wow, it's been a long time since I typed that in this parts!

I like the AFPRSC keyword if you've never done AFP stuff before, it keeps everything on the i. As Gary offered, the AFP print drivers do a great job, and are fine for the occasional thing. Again, IMHO. We've used it to great benefit to put customer & field associate signatures on reprints of invoices - those are not static, changing all the time.

Vern

On 11/19/2021 4:00 PM, Brad Stone wrote:
Well, you're asking here how to do it on the IBM i, so I thought maybe
there was another method that may be a little more work, but easier and
more familiar.

As I said, just throwing out ideas.

On Fri, Nov 19, 2021 at 3:58 PM Gary Kuznitz <docfxit@xxxxxxxxxxxx> wrote:

Hi Brad,

Yes, I could export the data and do a mail merge on a
PC. Why would I involve a PC that is not always reliable
when I have a perfectly good very reliable Power 9 that
has the capability to accomplish the same thing. I don't
see any pluses and I do see some negative things in
involving a PC.

Gary Kuznitz

On 19 Nov 2021 at 12:22, Brad (Brad Stone
<midrange-l@xxxxxxxxxxxxxxxxxx>) commented about
Re: How to print a logo in a Spool file:

Could you export the data and do a mail merge into Word or something like
that?

Just throwing out ideas. :)

On Fri, Nov 19, 2021 at 12:17 PM Gary Kuznitz <docfxit@xxxxxxxxxxxx>
wrote:
Hi Brad,

I need this to print a return address on an envelope. We
just printed 10,000 envelopes that need the logo. The
same envelopes need a bar code that is used for an
election and a Intelligent Mail Code that I'm looking to
see if anyone has the RPG code to create.

I'm also looking for a faster printer. The envelope
printers I have tested with conveyer belts say they print
at 600dpi but the bar code prints fuzzy. I am currently
using three HPM603n printers with envelope feeders.

Thanks,

Gary Kuzntiz

On 19 Nov 2021 at 11:47, Brad (Brad Stone
<midrange-l@xxxxxxxxxxxxxxxxxx>) commented about
Re: How to print a logo in a Spool file:

What is the desired end result? A printed spooled file or a PDF or
something else?

On Fri, Nov 19, 2021 at 10:40 AM Vern Hamberg <
vhamberg@xxxxxxxxxxxxxxx>
wrote:

Hi Greg

Have you looked at the AFPRSC PRTF keyword? It effectively replaces
PAGSEG, so you don't need anything off the system. You point it at
an
IFS image file and even PDF - ba-da-boom. I don't know if it
supports
PNGs yet - at least with Host Print Transform. It does work with
TIFFs
and GIFs, so that is good enough for us.

It's been around since v54r, and is supported in Host Print
Transform
since I don't remember when.

You might use FTP to upload the image file.

Cheers
Vern

On 11/19/2021 10:10 AM, Greg Wilburn wrote:
Create a PF on the IBM i - we call ours PAGESEG
Field Type Length Length Position Usage
Heading
PAGESEG CHAR 8201 8201 1 Both
Coded Character Set Identifier . . . . . : 65535
(no idea why I made it that length)

Install the IBM AFP Print Driver on your PC
Load the logo/image into a Word document (or similar)
- we usually remove the margins
- size it as you would like to see it on the page

Print to file using the IBM AFP Driver with output type = Page
Segment
File example: MyLogo.mbr

Then use FTP to upload it to the PAGESEG file
Binary mode
quote site namefmt 0
put c:\logos\Mylogo.mbr
/qsys.lib/asthhobj.lib/pageseg.file/mylogo.mbr
On the IBM command line:
CRTPAGSEG PAGSEG(yourlib/mylogo) FILE(ASTHHOBJ/PAGESEG)
MBR(*PAGSEG)
TEXT('My New Logo')
Now the image is on the system.

In the DDS (which has to be *AFPDS) - add logo below last record
format
A* COMPANY LOGOS (IN THE FORM OF LOGOCOM#)
A PAGSEG(&WRLOGO 0.25 0.25)

In the above example, the logo name (page segment name) is a
variable
called WRLOGO. You could easily just do:
A PAGSEG(MYLOGO 0.25 0.25)

The numbers after represent the "offset" over and down - the
non-printable area of a laserjet printer.

BTW - this works with any image - even one that is the entire
page.
HTH
Greg

-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On
Behalf
Of
Gary Kuznitz
Sent: Sunday, November 14, 2021 4:42 PM
To: Midrange Systems Technical Discussion <
midrange-l@xxxxxxxxxxxxxxxxxx
Subject: How to print a logo in a Spool file

I have a logo on a PC.

Can someone walk me through the steps required to use
that logo in a .PRTF file with DDS?

I'm running v7r4 trying to print to an HP printer with HPT
configured.

Thank you,

Gary Kuznitz
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related
questions.

Help support midrange.com by shopping at amazon.com with our
affiliate
link: https://amazon.midrange.com

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related
questions.

Help support midrange.com by shopping at amazon.com with our
affiliate
link:
https://amazon.midrange.com

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link:
https://amazon.midrange.com

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

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