On the Taebo invoice, I used the following steps
- Setup up IBM AFP600 printer in windows
- Click Start, settings, printer
- Double click add printer
- Click local printer
- Click IBM
- Click AFP 600 (600 dpi)
- Select print to file
- Create overlay with Microsoft Word
- Start Microsoft Word
- Allows you to design the form.
- Control A to select all
- Control C to copy
- Paint brush
- Click start, programs, accessories, paint
- In paint, control V to paste
- Click Yes "the image in the clipboard is
larger than the bitmap."
- Print to AFP600 printer file
- Click File, Page Setup
- Click landscape, set the margins left, top,
right, bottom to 0.25
- Click ok
- Click file, print
- Click printer file name, and select IBM AFP 600
- Click properties
- Choose 300 or 600 dpi
- Click overlay
- Click ok - properties
- Click ok to print
- Select the folder "C:My Documents"
- Type in the file name "Overlay.prn"
- Click OK
- Create an i5 physical file, once
- CRTPF FILE(EASTAFP/OVERLAY) RCDLEN(32766)
TEXT(OVERLAY)
- Make sure that Overlay.prn is not larger than 32K
- Copy printer file to i5 QDLS
- Start i5 operational navigator
- Click on 38.195.141.4 computer
- Click on File systems
- If file systems does not appear,
install this client access
component.
- Click on QDLS
- Click on EASTON
- Start windows explorer
- Right click start, click explorer
- Click on My documents
- Drag Overlay to QDLS (copy)
- Menus AFP
- Menu option 3, Copy qdls file to i5 physical file
- CPYFRMPCD FROMFLR(EASTON) TOFILE(eastafp/OVERLAY)
FROMDOC(OVERLAY.PRN) TRNTBL(*NONE)
TRNFMT(*NOTEXT)
- Menu option 4, Delete existing overlay
-
- Menu option 5, Compile Overlay
- CRTOVL OVL(EASTAFP/cmasOVL) FILE(EASTAFP/OVERLAY)
MBR(OVERLAY) TEXT(OVERLAY)
- Compile print file devtype(*apf)
- CRTPRTF FILE(EASTAFP/cmasOVLP)
SRCFILE(EASTAFP/QSRC) SRCMBR(cmasOVLP)
DEVTYPE(*AFPDS) REPLACE(*YES)
- Menu option 6, Test Overlay
- Call taeboovl
- You may want to modify TAEBOOVLP,
adjusting the starting position.
- Note, the overlay was printed landscape
(rotated) and the text is rotated too
- Menu option 7, Print invoice
- Call AL267BC
- Note: change the overlay(xxx 0 0) wont
adjust down, it does adjust across
Notes, problems
- AFP600 support 300 & 600 DPI. 600 dpi takes 30
second, 300 dpi takes 10 seconds to transmit and a print
1 page overlay.
- If you print to AFP600 printer using word, the overlay
will not come out correct.
- Print settings in Word (portrait/landscape) doesnt
effect the final outcome.
- Changing the margins in Paint brush does effect final
overlay, but it is better to adjust to make left &
right adjustments in the DDS overlay(xxx 1.0 1.0)
- Make sure the overlay is not greater than 32K
- See manual iSeries Guide to AFP and PSF
- Chapter 11.2.1-1 for DDS keywords
- Chapter 9.2.3-1 for creating overlays
- See manual Printer device programming , appendix
1.4.5.12.1 for fonts. Run program ipds test to see fonts
printed. And see library QSAMPLER.