First thing to do:

At the R> prompt, do a PRNSETUP and select the printer that you wanted to 
capture in your select statement
Do a    set var vprinter = (cval('currentprinter'))
            show var vprinter

Carefully compare it to what you have in your table

Karen

 

 

 

-----Original Message-----
From: TOM HART <[email protected]>
To: RBASE-L Mailing List <[email protected]>
Sent: Mon, Feb 9, 2015 6:55 pm
Subject: [RBASE-L] - Prnsetup



I have the following code to set up a receipt printer for a receipt.  For some 
reason this will not set it to the default printer(vprinter1).  Comprecprinter 
has a valid printer captured.



SET VAR vcompname = (CVAL('computer'))
SELECT comprecprinter INTO vprinter1 INDICATOR iv2 FROM storecomputer +
WHERE compname = .vcompname
PRNSETUP .vprinter1
PRINT consignbuyreceipt WHERE COUNT = 1 


Tom Hart



Reply via email to