Razzak
A second question - will the DLL Plugin approach to this issue work with
latest build of RTime as well as R:Base 6.5++?
David Blocker
[EMAIL PROTECTED]
781-784-1919
Fax: 781-784-1860
Cell: 339-206-0261
----- Original Message -----
From: "A. Razzak Memon" <[EMAIL PROTECTED]>
To: "RBASE-L Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, December 01, 2003 11:34 PM
Subject: [RBASE-L] - Re: Detecting if the default printer is connectedin
6.5++
> At 04:55 PM 12/1/2003 -0500, David Blocker wrote:
>
> >Is there a way in R:Base 6.5++ to detect if a user's default printer is
> >actually connected? I am working on an application where users will have
> >portable PC's and portable printers to take around on their work rounds.
> >They will periodically connect their portables to the network to move
data
> >back and forth and will need to print reports. We'd like to set it up so
> >that if the user connects his/her portable printer, it will print there,
but
> >if not, to a different network printer.
> >
> >Step one is to detect - is the default local printer connected?
>
>
> David,
>
> That would be a perfect use of a PLUGIN in 7.0 and WINUDF in 6.5++ for
Windows!
>
> Example 01: Using R:BASE 7.0 for Windows
>
> PLUGIN PRNStatus 'vValue'
>
> The resulting variable "vValue" will return the status of default printer.
>
> Example 02: Using R:BASE 6.5++ (1.866xRT03) or higher for Windows
>
> SET VAR vValue = (WinUDF('PRNStatus.DLL','GetStatus'))
>
> The resulting variable "vValue" will return the status of default printer.
>
> Very Best R:egards,
>
> Razzak.
>
>