PFPOSTPRINT question
Don Coleman
dcoleman at dgcreact.com
Wed Jun 23 07:31:57 PDT 2004
Windows 2000 Advanced Server, Windows 2000 clients, fP5.0.13, &
PrintWizard
In my pharmacy application I print prescription labels based upon the
customer and drug to various
Datamax bar-code printers using Bob Rasmussen's Print Wizard application
such as below:
36 ------- - - - - - - - - - - - - - -
- -
contrl2 If:
Then: putenv "PFPOSTPRINT","C:\PRINTWIZ\PRINTWIZ.EXE
/P\"I-4308C2\" C:\PRINTWIZ\HARDCOPY.TXT";goto pickprt
37 ------- - - - - - - - - - - - - - -
- -
contrl1 If:
Then: putenv "PFPOSTPRINT","C:\PRINTWIZ\PRINTWIZ.EXE
/P\"I-4308C\" C:\PRINTWIZ\HARDCOPY.TXT";goto pickprt
Currently these printer names are hard-coded into my application. For
certain customers I now need to be able to specify in my customer file
that I want all label requestions to print to a certain printer.
When using the following line of code I receive a Windows printer error:
25 ------- - - - - - - - - - - - - - -
- -
If: HY ne ""
Then: putenv "PFPOSTPRINT","C:\PRINTWIZ\PRINTWIZ.EXE
/P\"I-4308\"{HY C:\PRINTWIZ\HARDCOPY.TXT";goto pickprt
HY(2, ALLUP) is defined as "R" and I am testing by printing to a Windows
Printer named "I-4308R" bit I receive the Windows Printer error. If,
from a command line I type:
C:\PRINTWIZ\PRINTWIZ.EXE /pI-4308R C:\PRINTWIZ\HARDCOPY.TXT
it prints just fine. Instead of just adding the printer initials I
should probably put the entire printer name into my real field in the
customer file and adjust HY accordingly but I don't feel that is causing
my current problem. Any suggestions? This will also be helpful in
eventually removing the hard-coded printer names and adding them into
real fields as well.
Donald G. Coleman, Consultant
2100 Birchwood Dr.
Indiana, PA 15701
dcoleman at dgcreact.com
(724) 349-6302
---
[This E-mail scanned for viruses by Declude Virus]
More information about the Filepro-list
mailing list