At 09:05 PM 1/3/2002 -0800, Fred Antrobus wrote:
>I am printing a report using R:Base 6.5++ to a
>printer other than the one set to the "default"
>windows printer in windows
>
>The following works:
>
>prnsetup 'hplaser1'
>out printer
>print report
>out screen
>
>After doing this I want to set a variable to reflect
>the changed setting.
>
>This does not work.
>
>Set v vPrinterDirected text = (Cval('CurrentPrinter'))
>
>This sets the variable to the windows "default" printer when
>R:Base was started ot he one that I was just set in the command
>file.
>
>Is there another cval keyword or is there another way to "know"
>where the output is routed to without watching the paper spit
>out of the printer??
Fred,
Using The Glorious R:BASE 2000 (version 6.5++), Build: 1.850xRT03,
you have the following CVAL functions available in relation to
the PRNSETUP and Windows Printers.
01. (CVAL('WindowsPrinter'))
Returns the windows default printer.
02.(CVAL('CurrentPrinter'))
Returns the name of selected windows printer for current R:BASE
session using PRNSETUP 'Printer Name' command. If no PRNSETUP
'Printer Name' command was issued, then, R:BASE for Windows
will default to the windows default printer.
03. (CVAL('Printers'))
Returns the list of all installed printers on local workstation.
Enjoy and make sure to have fun!
Very Best Regards,
Razzak.
===================================-============================
R:BASE Developers's Conference: http://www.rbase.com/conference
Official R:BASE List Server: mailto:[EMAIL PROTECTED]
RBTI Events/Training: http://www.rbase2000.com/events
R:DCC Members: http://www.rbase2000.com/rdcc
================================================================
R:BASE, Oterro & R:Tango are registered trademarks of RBTI.
==================================-=============================
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: INTRO rbase-l
================================================
TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: UNSUBSCRIBE rbase-l