PFPOSTPRINT in a Windows filePro
Don Coleman
dcoleman at dgcreact.com
Mon Sep 25 11:33:32 PDT 2006
> -----Original Message-----
> From: Bob Rasmussen [mailto:ras at anzio.com]
> Sent: Friday, September 22, 2006 4:58 PM
> To: Don Coleman
> Cc: filePro Mailing List
> Subject: PFPOSTPRINT in a Windows filePro
>
> Hi all,
>
> I wonder if you can give me and a customer some help in how you enter
> PFPOSTPRINT commands for using Print Wizard. He is a little shaky on
> environment variables, and how this all works.
>
> 1. Do you set environment variables before running filePro, or inside
> filePro (at what level)?
For users who always print to the same printer I set the environment in the
start-up batch such as:
SET PFPOSTPRINT=C:\PRINTWIZ\PRINTWIZ.EXE C:\PRINTWIZ\FILE.TXT (routes to the
Windows default printer.
I have some users that need a report to print to one printer and send a copy
to another printer. In this case I start my menu script to:
SET PFPOSTPRINT=C:\PRINTWIZ\PRINTWIZ.EXE C:\PRINTWIZ\FILE.TXT (if printing
to the Windows default printer)
Or
SET PFPOSTPRINT=C:\PRINTWIZ\PRINTWIZ.EXE /PMY_LASER_PRINTER
C:\PRINTWIZ\FILE.TXT (routed to a specific Windows printer)
Then to send the copy to another printer reset PFPOSTPRINT after the fP
output process completes
SET PFPOSTPRINT=C:\PRINTWIZ\PRINTWIZ.EXE /PMY_OTHER_LASER_PRINTER
C:\PRINTWIZ\FILE.TXT (routed to a specific Windows printer)
If setting/overriding the environment within processing there are a number
of different syntaxes available:
Putenv "PFPOSTPRINT","C:\PRINTWIZ\PRINTWIZ.EXE /P\MY_LASER\"
C:\PRINTWIZ\FILE.TXT"
Or
AA(30,*)="C:\PRINTWIZ\PRINTWIZ.EXE;AB(30,*)="C:\PRINTWIZ\FILE.TXT"
Putenv "PFPOSTPRINT",AA<AB
> 2. What exactly do you set the PFPOSTPRINT to?
See above examples
> 3. Does this force fP to write the printfile to disk (instead of printing
> it), or does that require a separate operation/variable/configuration?
Yes, my config file specifies that when a particular fP printer is
specified, it prints to file C:\PRINTWIZ\FILE.TXT. PFPOSTPRINT is then
called upon completion which causes Print Wizard to process the file.
> In his example, the command he needs to execute is simply
> c:\program files\printwiz30\printwiz.exe somefilename.txt
>
> Regards,
> ....Bob Rasmussen, President, Rasmussen Software, Inc.
>
> personal e-mail: ras at anzio.com
> company e-mail: rsi at anzio.com
> voice: (US) 503-624-0360 (9:00-6:00 Pacific Time)
> fax: (US) 503-624-0760
> web: http://www.anzio.com
Don Coleman
Donald G. Coleman, Consultant
402 Andrew Circle
Indiana, PA 15701
dcoleman at dgcreact.com
(724) 349-6302
More information about the Filepro-list
mailing list