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.

