You can print your own form overlays from within Prelude without expensive forms software or dedicated hardware. Assuming you're using printers that can understand PCL, all you need is your AIX box, a PC and a few free programs.
I reconfigured our AP check printing to send fonts and forms on demand from within Prelude.
Here's what I used:
- pcloverlay http://aplawrence.com/KevinSmith/pcoverlays/ -- Create forms overlays for Lasterjet PCL printing by stripping out PCL commands that don't work with overlays. You'll need a C++ compiler on your AIX box, and you'll need to edit the program to put a couple extra includes to get it compile and run on AIX. I have a binary that I compiled that I'd be happy to share if anyone wants it.
- OpenOffice Draw http://www.openoffice.org/ to design the forms. You can really use whatever you want. This program is free and is nice for making the overlays.
- A PCL print-to-file "printer". In Windows, add a new printer -> choose "Local printer attached to this computer" -> "Use the following port: FILE: (Print to File)" -> Choose "HP LaserJet III' as the print driver -> name the printer something like "PCL".
- Optionally, the free program PCLReader is handy to view raw PCL output without sending it to a printer: http://www.filetransit.com/freeware.php?name=Pcl2pdf
- This page was also useful for deciphering PCL commands:http://www.piclist.com/techref/language/pcl/index.htm
Here's my method:
- Make the form with OO Draw, then "printer" it to a PCL file.
- Transfer the PCL file to the AIX box.
- Run pcloverlay:
pcloverlay < rawpclfile.pcl > formoverlay.pcl
- In the UniBasic program where you want the overlay, right after the "PRINTER ON" statement, put something like:
VERB="! cat /path/to/formoverlay.pcl"
EXECUTE VERB CAPTURING DSP
PRINT DSP:
In a related note, you can send fonts (bar codes, MICR, etc) to the printer in a manner similar to above, but you have to make sure that you have an <ESC>*c#D (where # is the font ID number you assign) at the start of the font file and an <ESC>*c5F at the end. This page has some useful info:
http://www.idautomation.com/kb/fonts-pcl.html#Other_PCL_font_issues I hope someone finds this useful. We were using flash memory cards in our HP printers to store forms as PCL macros, but maintenance became a nightmare. I researched some other form printing solutions and vendors wanted $10K - $30 for their products.