Dennis,

You can get a List of the printers with the following command: SET VAR vPrinter 
= (CVAL('PRINTERS')).  From this you can verify that the printer you want to 
use is in the list.  If it is, then you can issue the Print Command with the 
following option of Printer_Name HPLASER..  Such as Below.

Print reportname option Printer | Printer_name HPLASER

Plus there are a hundred other options you can select for that printer, such as 
tray to use, paper name, etc.  Check out the Print Command and all of the 
options should be there that you need to control the printing of your report.

There is also the prnsetup command that will change the default printer for the 
R:Base session you are in.  But it will return to the default windows printer 
when you exit R:Base and come back in.  I also have a batch file that I created 
that will actually change the default windows printer external to R:Base, which 
I can send you if you are interested.

Frank Taylor - Information Technology Administrator
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 Dennis McGrath
Sent: Thursday, October 23, 2008 6:04 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Default printer

I thought I had my problem solved but I'm going to have to ask.

I can print to the screen maximized to give the user a preview.

Is there a way I can control, in code, which printer is defaulted when I click 
the print icon?



________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Downall
Sent: Thursday, October 23, 2008 4:29 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Default printer

Dennis,

(CVAL('windowsprinter'))

Bill

On Thu, Oct 23, 2008 at 5:24 PM, Dennis McGrath <[EMAIL 
PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote:

Is there a way to capture the name of the Default Printer?



Dennis McGrath


_______________________________________________________________________
This Email has been scanned for all viruses by PAETEC Email Scanning Services, 
utilizing MessageLabs proprietary SkyScan infrastructure. If you need 
assistance, please contact the Systems Administrator, Frank Taylor at [EMAIL 
PROTECTED] - 617-790-3093.
** REMEMBER NEVER OPEN AN ATTACHMENT UNLESS YOU ARE SURE OF IT'S CONTENT AND 
SENDER **
_______________________________________________________________________

Reply via email to