PFPRINTER variable

Nancy Palmquist nlp at vss3.com
Tue Jul 9 08:52:14 PDT 2013


Scott,

getenv("PFPRINTER") is one way to find out what is loaded into that 
variable.

However, if it is not set and the default is running, you can get the 
current printer from @pr  (Current printer name) or @pt (current printer 
type)

My gotcha's:

Be sure you never name printers the same as tables. Filepro is clever 
enough to print to any printer that has a given table assigned.  So if 
you have a number of printers with a table called "laser" you can direct 
output to "laser" and it will turn up on one of those printers in the 
queue.  A neat trick but annoying if the printer you want is next to you 
and it never prints.

If you change the printer name in processing, also set the printer type.

I know FilePro will assume but I find it always a better rule to be 
clear as to what you want.  Saves much troubleshooting.

Nancy





On 7/9/2013 10:01 AM, scooter6 at gmail.com wrote:
> I have some processing that prints our statements each month and it's
> worked fine with no problem for years.
>
> The PFPRINTER is set through a menu the user passes through, so they have
> the option to printer to 3-4 different printers....no problem there
>
> Now we've gotten more and more clients with a <credit balance> so I want to
> be able to set PFPRINTER to 'null' if there is <credit balance>
>
> So, is there a way to set a variable to whatever PFPRINTER is set to when
> the user executes the processing.....then put a GOSUB if it's a <credit>
> that will set PRPRINTER=null
> If it's NOT <credit balance> then I want to obviously reset PFPRINTER to
> whatever it was when user executed the command....
>
> I haven't been able to figure out how to get the 'value' of PFPRINTER
> pulled into processing to be able to 'manipulate' it?
>
> Thanks
> Scott
> PDM
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20130709/67e18e99/attachment.html
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>

-- 
Nancy Palmquist         MOS & filePro Training Available
Virtual Software Systems    Web Based Training and Consulting
PHONE: (412) 835-9417           Web site:  http://www.vss3.com



More information about the Filepro-list mailing list