Print file to PCL

Kenneth Brody kenbrody at bestweb.net
Tue Apr 20 08:31:23 PDT 2004


Enrique Arredondo wrote:
[...]
> The thing is that the ASCII report prints already on a dot matrix printer
> with preprinted forms, and it's so complex, it updates so many flags , it
> updates so many files with YTD amounts,etc. That's it's quite impossible to
> re run it with the HP laser print codes. So once I have the report in ASCII
> I want to print it on a HP laser plain paper printer. But the only way of
> making it fit is by adding that code to fit on a 60 lines per page printer a
> 66 line report.

Okay...

Let me rephrase your original question, and see if I understand it:

    How do I take a plain-text file, formatted at 66 lines per page, and
    print it to an HP laser printer, which defaults to 60 lines per page?

If that's the case, then something like this would work:

    ( printf "escape_codes_to_set_66_line_mode" ; cat filename ) |
        lp -dlaser -o raw

Use "\033" to represent ESCape in the printf line.

-- 
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody        | www.hvcomputer.com |                             |
| kenbrody at spamcop.net | www.fptech.com     | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+



More information about the Filepro-list mailing list