Fw: Print codes

Kenneth Brody kenbrody at spamcop.net
Tue Apr 24 15:04:44 PDT 2012


On 4/24/2012 5:37 PM, Ken Wakeman wrote:
> JP,
>
> Correct the is actually a unix text file
>
> But created with the filepro jsfile command.
>
> I only need to change the pich for this one output. Using filepro rreport
> no problem. But since it is now a text file, i though inserting the pcl
> code at the begining of the file might work ?

Print codes are only applicable to printed output.  However, since you are 
talking about using PCL, why not just generate the PCL code to put into your 
text file?  The PCL code for setting 16.7 pitch is:

     ESC (s16.6H

(You can always check the PCL print code tables to find what you need.)

So you simply use:

     CHR("27") & "(s16.6H"

wherever you need to include it in your output.

Of course, you may want to put it in a variable:

     declare Pitch167 ; Pitch167 = CHR("27") & "(s16.6H"

and then use "Pitch167" as needed.

> -----Original Message----- From: "Jean-Pierre A. Radley"<appl at jpr.com>
> Sender: filepro-list-bounces+ken_wakeman=me.com at lists.celestial.com Date:
> Tue, 24 Apr 2012 17:12:54 To: FilePro Mailing
> List<filepro-list at lists.celestial.com> Subject: Re: Print codes
>
> ken_wakeman at me.com propounded (on Tue, Apr 24, 2012 at 09:04:03PM
> +0000): | Is it possible to place in an ascii file... | Filepro print
> codes.
>
> Huh?  What's an ascii file? | | I am using the Jsfile command to create
> unique files and | Need to change the pitch to 16.7.
>
> What is JSfile?
>
> | I would be using the unix lp command | To print the file.
>
>
> Is what you really want an option to the lp command to print in 16.7
> instead of the deafult?
>
> Then just edit your interface file to add such an option.

-- 
Kenneth Brody


More information about the Filepro-list mailing list