- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Fancy Printing
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 04:07 AM
10-23-2001 04:07 AM
I am looking for a package which can take plain text and convert it to fancy output with boxes, different fonts, colors,
and possibly logos. I need it for several unix platforms including Sun and HP and also I would like to run the same package on W2K or NT. Any ideas?
Thanks in Advance, Doug
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 04:19 AM
10-23-2001 04:19 AM
Re: Fancy Printing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 04:22 AM
10-23-2001 04:22 AM
SolutionMy weapon of choice would be a product called 'UnForm'. http://www.unform.com
I warn you that this is not is WYSIWIG, GUI-based forms builder product but is rather a
text-based programming product. The idea is rather simple, Unforms examines the incoming data looking for regular expressions. When it finds something it recognizes (e.g. MYREPORT at column 3 line 7), it applies a set of 'rules' to the output. You can move output from anywhere to anywhere, apply colors, dulpex, fonts, graphics ...
All of the rules can be contained in one file; if not match is found, stdin is simply echoed to stdout. It is very easy to integrate into lp. It is really only geared toward's PCL printers but you can also producr HTML and PDF output. I will say that building forms is tedious but because there is an underlying BASIC interpreter, one can do virtually anything. You have variables, access to external files, environment variables, command line args, and arrays. The BASIC syntax tends to drive me crazy and I would love to give the person who wrote the parser yacc/lex lessons but it does work. And yes, it runs on HP, Solaris, WinNT, and Win2K.
The good news is that you can download a fully funcional 30-day trial version. If you find that you like the product, I can give you a few functions and techniques that I've found to be useful.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 04:27 AM
10-23-2001 04:27 AM
Re: Fancy Printing
We use a2ps (ascii to postscript) to do formatting.
Andreas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 04:32 AM
10-23-2001 04:32 AM
Re: Fancy Printing
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 04:47 AM
10-23-2001 04:47 AM
Re: Fancy Printing
Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 05:03 AM
10-23-2001 05:03 AM
Re: Fancy Printing
My answer is still the same - UnForm. Our ERP system outputs plain text and the same code can send output to an HP printer, to the FAX server, or to email. VsiFax understands PCL input and it can then in turn fax the output or email it. All of this simply looks like a spooljob to the application. In fact, the same UnForm rules file does all three outputs and simply does some minor branching. For example, a printed form might be allowed to duplex but a fax would not. The interface file simply sets and exports some environment variables to tell the rules file that this is a color printer, this is a fax, this printer can duplex, ... . If you do need to fax and print output, you do need to be aware that the font set that VsiFax supports is limited. You simply have to make sure that you don't use any fonts in your rules files that are not
supported by VsiFax PCL files.
Hope this helps, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 06:36 AM
10-23-2001 06:36 AM
Re: Fancy Printing
Thanks everyone for your quick responses. This is great! It looks like A. Clay's suggestion of UnForm is the best fit for us. I downloaded the trial version and it looks good. A. Clay, the manual mentions something about run-time slots. How many of those do I need to buy? One for each simultaneous print/fax job?
Thanks again, Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 07:06 AM
10-23-2001 07:06 AM
Re: Fancy Printing
That depends. On UNIX platforms (I don't know what the Windows versions do), UnForm is actually invoked from a shell script. It first queries the actual executable to determine if a license is available. If so, the the job is processed; if not, then the job is retried a configurable number of times with a configurable delay between each attempt. In our case, I purchased 3 run-times for each of our production servers. Unform is heavily used
and I have not seen a problem printing jobs all over the world with 3 run-times, 5 retries, and 15 second delays between attempts.
The good news is that the additional run-times are quite cheap but I feel very sure that only a few will be actually needed. In fact, knowing what I know now. I would probably only purchase 2 run times and up the retry count. Remember, the license is not tied up for the time required to actually PRINT the document but rather the time required for UnForm to process the document before submitting to the print queue.
I hope I've been somewhat clear, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 07:43 AM
10-23-2001 07:43 AM
Re: Fancy Printing
Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 08:28 AM
10-23-2001 08:28 AM
Re: Fancy Printing
It's probably way too early to give you much help; it would only confuse you. I would say study the examples very carefully and start simple. The first one I did was very complex and that was a big mistake. I would code it completely differently now.
There are basically two approaches. 1) You are modifying output that you cannot change. 2) You are modifying output for which you have the source. Case 1 is covered pretty well by the supplied examples. Case 2 might be handled like this:
Each form should have a unique ID like 'CEMBOL' located in a fixed place. That makes spotting the kind of report very easy. After that string has done it's job, you can issue an erase command. We don't need it.
I actually like for the application programmer
to surround each field with C1~|Widget (Blue) |~. My convention is to use those two characters 'C1' as a tag. It identifies to me, what this element really is. Remember, all I know is that this is plain text. I also use the '~|' and '|~' pairs to delimit each field. I can then capture everything between those two delimiters and assign them to a variable. The applications programer gives me a list of what each field (tag) is.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 10:24 AM
10-23-2001 10:24 AM
Re: Fancy Printing
One last point, in addition to the User Manual be sure to download the 'Programming in UnForm' manual. This is the manual which includes the Business Basic. You will need this when your programming starts getting more advanced. One thing that is not explained. All the functions can have an option ERR=lineref clause. This basically does a goto lineref when the function detects a run-time error (e.g. file not found). All the examples use a numeric lineref (goto 4500) but that does NOT work when Business Basic runs under UnForm. lineref must be a label (e.g. 'bugout:' with ERR=bugout). That drove me crazy because I was doing just like the book said and was getting syntax errors.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 11:02 AM
10-23-2001 11:02 AM
Re: Fancy Printing
Hey Clay, you won't believe this. I phoned the company that makes UnForm. I asked for some reference sites and your name came up. Is that cool or what?
Thanks for all your help.
Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 11:38 AM
10-23-2001 11:38 AM
Re: Fancy Printing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2001 08:54 AM
11-29-2001 08:54 AM
Re: Fancy Printing
http://www.objectiflune.com
You can easily set it up to capture the ASCII/UNICODE data, merge with the selected form (based on conditions in the data stream) and output to printer, fax, e-mail, PDF???
We've successfully implemented this with a customer running SCO and it's been working very nicely.