My problem is that I am designing a system that will be deployed
elsewhere, *NOT* using an IBM InfoPrint 1120 at all...in fact there
will be no IPDS support whatsoever. Instead, the printer they will be
using will be an HP 1320n.
I've managed to get ahold of one to test a little with, and my printout
is changed drastically. It does change the fonts, apparently, but is
ignoring the sizes on anything coded with FNTCHRSET. I have a few
items coded with the FONT parameter, and those retained the sizing.
Also, the boxes are present, but my logo is not. :(
Please help! What can I do to preserve my layout and logo?
(Purchasing software that costs more than $0 is out of the question
here, alas...)
Thanks in advance for your ideas!! :)
About fonts (I think) you have 2 options:
-choose a font present on the printer and play with the size
-setup the printer writer (HPT) enabling the raster mode (but
performances can be a problem)
HTH
M.
We used, works great and no as400 programming or fees required.
Best of luck!
I can second this. Brooks ExcelliPrint is a fantastic product.
Be aware that the Standard product requires a PCL capable
printer, the Premium product supports Host-based Windows
printers.
We use it internally with HP printers.
If it helps, this print file is AFPDS, and contains both AFP commands
(to draw boxes, place logo) and SCS stuff.
Thanks for the software recommendation, but the printer is not going to
be connected to any Windows PC--I'm using the '400 to send directly to
a TCP/IP printer.
Thanks!!
IPDS on a IBM 1120 is a hardware function and mixing
that with a AFP functions, you will NOT be able to
duplicate that on a basic ascii printer.(HP 1320)
You can use the DDS specs and compile to AFPDS, and
using the correct HPT printer, you will get "similar"
but not exactly the same results.
You need to do a good bit of reading on AFPDS and what
it supports and what it does not.
This is going to require "much" fooling around.
What version of IBM server operating system are you using for your
testing? The host print transform feaure of i5/OS and OS/400 includes
an AFPDS to PCL conversion process, which supports everything you have
outlined you need to do in the releases since V4R5M0.
If your operating system is reasonably new, I would suggest looking at
the job log as someone else mentioned, because the inability to use
FNTCHRSET for downloading fonts and the loss of the page segment sound
like a library pathing problem or job permission access problem.
HTH
Best Regards,
/Paul
--
Paul Tykodi
Principal Consultant
TCS - Tykodi Consulting Services LLC
The following procedure auto create such a printer and tests the output.
Try configuring a client access emulated printer, use host print
transform, select other as printer model and put QWPTIFFG4 as
workstation customization object (in place of QWPDEFAULT that's the
default value). Create a windows printer on the FILE: port using the
"Generic/text only" windows printe driver. Start the session and put a
spooled file (either *AFPDS or *SCS) on the printe queue. When windows
prompt you for a file name give it a name of choice (e.g. c:\spool.tiff
will help you in finding the output file) enter the dos command "start
c:\spool.tiff" in a windows command prompt, this will start the default
application for a tiff file if any, usually imaging that's the default
and comes with windows accessories.
I created the printer session, per your instructions. I get the TIFF
image...and it contains boxes, but no font sizes or FNTCHRSET
commands...
Someone mentioned how I could view the 'font substitution' messages and
other messages regarding unavailable functions, but I could not get it
to work from the instructions provided. My AS400 is V5R3. Could I get
a clarification of where I need to go to view these important messages,
or ideas why my logo and formatting are missing from this direct TIFF
printout?
Thanks so much for all of your help everyone!!
[...]
I guess you didn't install any font, try installing SS1 opt.8 AFP
Compatibility fonts. Then if fonts are not acceptable you should install
the IBM Font collection.
What am I doing wrong? :( I could understand if I was using fonts
that were totally incompatible with the HP printer, but now I'm using a
direct TIFF conversion on my PC via the Generic/Text only printer
driver, and am getting the same lack of fancy fonts and logo.
Interestingly, if I save the *same* spooled printer output that has no
logo or font enhancements, and print it on the IBM Infoprint IPDS
printer...TADA! Fonts and a logo magically appear! FROM THE SAME
SPOOLED PRINTOUT! ;( ;( ;(
I could just beat my head on a wall and cry... This surely must be
some simple thing that I don't know and am overlooking, right? :(
Also, I still have not seen any font substitution or unavailable
function messages on the writer. All it says in its message log is
that it was started.
WRKJOB JOB(PDFMAIL) <-- PDFMAIL is the printer name
and you get a list of (in)active jobs like:
Opt Job User Number Type
-----Status------
PDFMAIL QSPLJOB 443363 PDJ ACTIVE
PDFMAIL QSPLJOB 443362 BATCH ACTIVE
PDFMAIL QSPLJOB 443338 WTR ACTIVE
or shorter depending on the printer type.
Each job controls the various functions needed to print.
Select (one by one), type 10 and then press F10.
HTH
M.
1. Spool File --> IBM InfoPrint; i5/OS Print Driver is PSF/400.
2. Spool File --> HP LaserJet Printer; i5/OS Print Driver is host print
transform (AFPDS to PCL conversion).
Both PSF/400 and Host Print Transform support the use of overlays, page
segments, downloaded AFP fonts, and bar codes.
Limitation of host print transform - input spool file format must be
*AFPDS. PSF/400 can work with *SCS, *IPDS, and *AFPDS as input and
successfully add AFP resources to these input file formats.
Another potential difference between PSF/400 and Host Print Transform
can be the file permissions associated with the jobs and the libraries
queried for AFP resources.
If your input spool file format is *AFPDS, I believe your problem will
be that either Host Print Transform cannot find the resources specified
in the spool file or it currently does not have the proper security
authorization to access and use the resources specified.
As others have mentioned, these types of issues will definitely be
logged by the system. You just need to find the correct joblog.
HTH
Best Regards,
/Paul
Interesting note: In playing with the fonts, I tried the only outline
font on our system (CZ6200) which is also in QFNTCPL with all the rest.
It printed on my Generic/Text only TIFF file printer...maybe something
is not allowing the raster fonts? But that doesn't explain the logo...
:(
>
> I could just beat my head on a wall and cry... This surely must be
> some simple thing that I don't know and am overlooking, right? :(
>
I agree. I still point out the absence of fonts installed. Look at
DSPSFWRSC if "AFP Compatibility fonts" is installed.
Try something simpler to see whose fault is it. E.g. enter the following
commands:
OVRPRTF FILE(*PRTF) DEVTYPE(*AFPDS) FORMFEED(*AUTOCUT)
FRONTOVL(YOUR_OVL) OUTQ(TIFF_OUTQ) OVRSCOPE(*JOB)
DSPJOB OUTPUT(*PRINT) OPTION(*LIBL)
DLTOVR FILE(*PRTF) LVL(*JOB)
where YOUR_OVL should be the qualified overlay name of choice, and
TIFF_OUTQ the name of the printer you created to have the TIFF output.
This will print the library list of your job suitable for HPT.
> Also, I still have not seen any font substitution or unavailable
> function messages on the writer. All it says in its message log is
> that it was started.
--
I also performed the commands you listed and I got a TIFF printout of
my library list...but with no logo... :(
I saw no error messages.
Then I took the file and went to STRAFPU and converted it to a page
segment. I did not use any other AFP commands on it...just converted it
to a page segment...did I skip an important step somewhere?
Should I start over from scratch?
I usually use ftp binary, but you can use CPYFRMSTMF or COPY commands as
well, specifying to copy without any character conversion.
Then you can use the CRTPAGSEG command. The same procedure can be used
to create an overlay, just configure the AFP driver to output as page
overlay and use CRTOVL command.
But my fonts still don't. :(
Even outputting to a TIFF file does not show them...that does not make
any sense to me. Some of you have mentioned the potential of an
authority issue or that it can't find the resources. I added the
QFNTCPL and QAFP libs to the system library list...how can I check
authority on the proper stuff?
Thanks again, everybody, for helping me. I'm new to this cool AFP
stuff! :)
Or am I just trying to do something strange using FNTCHRSET? I want to
use the AFP fonts and still get correct sizing...is this the only way?
Is there a problem with the device's configuration? Here it is for
your viewing pleasure...
Display Device Description
Page 1
5722SS1 V5R3M0 040528 S1025A9C 10/10/06
15:25:08 EDT
Device description . . . . . . . . : DEVD DEP31
Option . . . . . . . . . . . . . . : OPTION *ALL
Category of device . . . . . . . . : *PRT
Device class . . . . . . . . . . . : DEVCLS *LAN
Device type . . . . . . . . . . . : TYPE 3812
Device model . . . . . . . . . . . : MODEL 1
LAN attachment . . . . . . . . . . : LANATTACH *IP
Port number . . . . . . . . . . . : PORT 9100
Physical attachment . . . . . . . : ATTACH *DIRECT
Online at IPL . . . . . . . . . . : ONLINE *YES
Font . . . . . . . . . . . . . . . : FONT
Identifier . . . . . . . . . . . : 11
Point size . . . . . . . . . . . : *NONE
Form feed . . . . . . . . . . . . : FORMFEED *AUTOCUT
Separator drawer . . . . . . . . . : SEPDRAWER *FILE
Separator program . . . . . . . . : SEPPGM *NONE
Library . . . . . . . . . . . . :
Printer error message . . . . . . : PRTERRMSG *INQ
Message queue . . . . . . . . . . : MSGQ *CTLD
Current message queue . . . . . . : QSYSOPR
Library . . . . . . . . . . . . : QSYS
Activation timer . . . . . . . . . : ACTTMR 170
Inactivity timer . . . . . . . . . : INACTTMR *SEC15
Line speed . . . . . . . . . . . . : LINESPEED 19200
Word length . . . . . . . . . . . : WORDLEN 8
Type of parity . . . . . . . . . . : PARITY *NONE
Stop bits . . . . . . . . . . . . : STOPBITS 1
Host print transform . . . . . . . : TRANSFORM *YES
Manufacturer type and model . . . : MFRTYPMDL *HPIIISI
Paper source 1 . . . . . . . . . . : PPRSRC1 *LETTER
Paper source 2 . . . . . . . . . . : PPRSRC2 *LETTER
Envelope source . . . . . . . . . : ENVELOPE *NUMBER10
ASCII code page 899 support . . . : ASCII899 *NO
Image configuration . . . . . . . : IMGCFG *NONE
Character identifier . . . . . . . : CHRID *SYSVAL
Remote location . . . . . . . . . : RMTLOCNAME
Name or address . . . . . . . . : DEP31
Workstation customizing object . . : WSCST *NONE
User-defined object . . . . . . . : USRDFNOBJ *NONE
Object type . . . . . . . . . . : *NONE
Data transform program . . . . . . : USRDTATFM *NONE
System driver program . . . . . . : SYSDRVPGM *HPPJLDRV
Allocated to:
Job name . . . . . . . . . . . . . : DEP31
User . . . . . . . . . . . . . . : QSPLJOB
Number . . . . . . . . . . . . . : 844610
Published . . . . . . . . . . . . : *NO
Display Device Description
Page 2
5722SS1 V5R3M0 040528 S1025A9C 10/10/06
15:25:08 EDT
Device description . . . . . . . . : DEVD DEP31
Option . . . . . . . . . . . . . . : OPTION *ALL
Category of device . . . . . . . . : *PRT
Publishing information . . . . . . : PUBLISHINF
Support duplex . . . . . . . . . : *UNKNOWN
Support color . . . . . . . . . : *UNKNOWN
Pages per minute black . . . . . : *UNKNOWN
Pages per minute color . . . . . : *UNKNOWN
Location . . . . . . . . . . . . : *BLANK
Data streams supported . . . . . : *UNKNOWN
Text . . . . . . . . . . . . . . . : TEXT Depot-HP LaserJet
1320n-Offi
ce
Active switched line . . . . . . . : *NONE
Switched line list . . . . . . . . : SWTLINLST
--------------------Switched lines---------------------
(No switched lines attached)
User-defined options . . . . . . . : USRDFNOPT
-----------------User-defined options------------------
* * * * * E N D O F L I S T I N G * * * * *
WRKOBJPDM LIB(QFNTCPL) OBJ(*ALL) OBJTYPE(*FNTRSC) OBJATR(FNTCHRSET)
Use one of these fonts, without specifying a size, to try before
wondering about authorization, unless particular restrictions were
applied on your system you should not have any authorization constrain
about fonts.
> Is there a problem with the device's configuration? Here it is for
> your viewing pleasure...
Very pleasant! :-)
I don't see any problem with your configuration, but the model you choose.
Generally speaking, most of what you should know (other then usual print
guides), can be found in:
http://www-912.ibm.com/s_dir/slkbase.NSF/wp?OpenView&view=wp
(also Font Collection information)
When you are in the page click on collapse to see all arguments: a new
world then appear!
To see if your printer is supported expand "Printer Hardware" and then
ASCII printers, open the document that's fitting the brand of your
printer (maybe HP, I guess) that search for the model (HP laser-jet
1320n, I guess) to see which type of data-stream and job-control
protocol is supported.
All of this be easily found with the search option.
I found it for you, and I can see that HP laser-jet 1320n supported
datastream is *HP5SI, so you can put this value in MFRTYPMDL attribute
instead of *HPIIISI.
Then should work very well.
I will abandon using these fonts for my project, since I need to make a
good deal of large text on this document.
I printed the PCL font list from my HP printer. It shows "font #/id"
as well as the PCL escape sequences for each font. I tried to use the
id in my dds under the FONT keyword, but it is ignored...do I need to
do something to input the various escape sequences, as detailed here:
http://www-1.ibm.com/support/docview.wss?uid=nas198b6b000ead0990c862565c2007d0ee1
Thanks so much for your help! I've been on vacation, or I would have
asked sooner.
I strogly suggest you to keep the same way using outline fonts that are
scalable and mapped to available printer fonts. Using IBM font
collection you get Helvetica (functionally equivalent to Arial) Times
Roman Courier and other typewriter fonts, both raster (240 and 300 pels)
and outline. HPT will use Font collection fonts.
Don't I have to abandon FNTCHRSET and try to instruct the printer to
use the built-in scaleable fonts?
Also, I printed the PCL font list from the printer...it has some nice
fonts that I can apparently scale to any size...is there not any way I
can use those fonts, since they are on the printer only and not the
AS400? Can I just tell the '400 to let the printer use its own fonts
and not substitute them for the AS400 fonts?
I read something in that IBM manual about being able to use TrueType
fonts...is that a possibility in this case, to use TT fonts to achieve
the sizing and font styles I want?
Sorry to ask so many questions...the project I'm working on is needing
to come together in the next week or less... :( I can live with the
fonts and sizes I have now, but it is not ideal for what we were hoping
for. Thanks!!
Thanks so much for your help! You've been quite a lifesaver!
Keep in mind that these type of fonts are defined as "printer resident",
so the output strictly depends on the output device, that some times
could not have resident fonts at all.
>
> Thanks so much for your help! You've been quite a lifesaver!
Are all of the fonts in table 21 "printer resident"? Thanks again! I
owe you dinner or something! :) You saved my project!