× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

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