PCL in Output Formats

Richard Kreiss rkreiss at gccconsulting.net
Tue Aug 17 10:32:38 PDT 2010



> -----Original Message-----
> From: filepro-list-bounces+rkreiss=verizon.net at lists.celestial.com [mailto:filepro-list-
> bounces+rkreiss=verizon.net at lists.celestial.com] On Behalf Of Rodgers Hemer
> Sent: Tuesday, August 17, 2010 12:20 PM
> To: filepro-list at lists.celestial.com
> Subject: PCL in Output Formats
> 
> SCO5.0.14/filePro5.6.10
> 
> How are Esc codes entered directly into an output format?  I know how to do it using
> vi to create a file and then load it into the format.  But can it be done directly?
> 
> And how is it done in a Windows version of filePro?
> 
> Thanks,
> 
> Rodgers Hemer
> 206.523.2329
> r.hemer at w-link.net

You can enter esc codes from a processing table by placing a dummy field(s) in the format and sending the code when needed.

Here is a sample of code used in printing bar codes.

Set in @once processing
     ◄ If:
     Then: x="0"; ec=chr("27"); px=ec{"*p0X"; pr=ec{"&a0R";
32  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
     ◄ If:
     Then: pn=ec{"&l0L"; ps=ec{"&l1L"; oa=ec{"&l-45U"; ob=ec{"&l1935U";
33  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
     ◄ If:
     Then: oc=ec{"&l3915U";

In the run time portion:

Su is the initialization sting that sets the column position on the label page 10X3 

So, the first 10 labels print down first column, etc.

25  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
      ◄ If: x="1"
      Then: su=oa{pr{px{pn
26  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
      ◄ If: x="11"
      Then: su=ob{pr{px
27  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
      ◄ If: x="21"
      Then: su=oc{pr{px{ps

There is some additional coding that prints the order # and the number of pages of labels being printed in the top margin of of the label page,  this area is not normally accessible but by using code within the processing table, the print position can be moved.

The above coding comes from Jim Asman.



Richard Kreiss
GCC Consulting
rkreiss at gccconsulting.net
  


 



More information about the Filepro-list mailing list