Tom, If you are looking to change the default printer in windows, you can create a bat file in RBase and then launch it from RBase.
For Windows7, 8 and Server 2008 up. wmic printer where name='printername' call setdefaultprinter For Windows XP RUNDLL32 PRINTUI.DLL,PrintUIEntry /y /n "printername" Out setdefault.bat Write &vcommand - Set variable to command line based on O/S and printer selection Out Scr Launch setdefault.bat Frank Taylor - Director of Information Technology F.J. O'Hara & Sons, Inc - Araho Transfer Inc. Boston, MA - Rockland, ME - Miami, FL Direct Dial - 617-790-3093 Email: [email protected] From: [email protected] [mailto:[email protected]] On Behalf Of TOM HART Sent: Monday, February 09, 2015 7:55 PM To: RBASE-L Mailing List 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

