Different Logo files

Jim Asman jlasman at telus.net
Mon Jan 16 12:22:17 PST 2012


--------------- Original Message ---------------
At 01:06P Mon Jan 16 2012, Scott Walker wrote:

> > -----Original Message-----
> > From: filepro-list-
> > bounces+scottwalker=ramsystemscorp.com at lists.celestial.com
> > [mailto:filepro-list-
> > bounces+scottwalker=ramsystemscorp.com at lists.celestial.com] On Behalf Of
> > Jim Asman
> > Sent: Saturday, January 14, 2012 4:27 PM
> > To: filepro-list at lists.celestial.com
> > Subject: Re: Different Logo files
> > 
> > --------------- Original Message ---------------
> > At 03:25P Sat Jan 14 2012, Scott Walker wrote:
> > 
> > > I have an invoice form that I download a logo onto using a print code
> > (on
> > > the output format) that specifies the file to include.  Works fine.
> > >
> > > Now I want to be able to use different files for different invoices
> > (based
> > > on the company# field) in the same report run.  What's the best way to
> > > accomplish this within fp?
> > >
> 
> Jim said:
> 
> > Simple...
> > 
> > Combine all logos into a single file, each with a unique macro ID, and
> > download them to the printer in the form init. Then when the records are
> > processed, "call" the appropriate macro based on the company info.
> > 
> > 
> 
> Jim,
> 
> Thanks for the idea...simple.....for you!  I really wanted to keep this on
> the fp side, if possible, to keep it as transportable as possible.  
> 
> Maybe there is a way to stuff a print code in a dummy variable
> 

You can't "stuff" a printcode anywhere, but as you are doing it now; i.e.,
directly on the output format. You CAN issue the PCL code to call a macro
from within a fp variable, thus my suggestion.

The other approach is to always issue the same printcode as you are doing now,
but copy the appropriate logo file into a specific location as specified in
$PFDLDIR. 

Let's say you have files logo1, logo2, logo3, and logo4.

The printcode will be set up to download "logo.pcl".

The PATH to the file is defined in $PFDLDIR.

Once you have determined which logo file you need, say logo3, then with a 
system call copy logo3 to $PFDLDIR/logo.pcl.

Include in PFDLDIR maybe $TTY, to differentiate between this process and one
running from another terminal. Your download code only need be %"logo.pcl".

In the .profile or wherever set $PFDLDIR to for example...

/u/appl/fp/dl/$TTY 

I'll leave it to you to work out the details.



Jim 
--
jlasman at telus.net                      Spectra Colour Services Ltd.
Jim Asman                              10221 144a Street            
Phone: (604)584-0977                   Surrey, BC  V3R 3P7   CANADA            
 Cell: (604)619-0977                   www.spectracolorservices.com



More information about the Filepro-list mailing list