David,
Can you take a wild guess?
Very Best R:egards,
Razzak.
At 12:44 PM 12/3/2003 -0500, David Blocker wrote:
Thanks to all whop responded on this question!
Razzak, is the PRNStatus.DLL an actual DLL that exists, or that we would need to create?
Thanks!
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.

