[AccessD] determine the system's default printer

Stuart McLachlan stuart at lexacorp.com.pg
Sat Oct 15 17:07:33 CDT 2005


On 15 Oct 2005 at 14:38, Susan Harkins wrote:

> Oh -- well, that's certainly easy enough -- are you sure that's the default
> and not the current printer? 
> 
> Susan H.  
> 
> 
> Application.Printer.DeviceName
> 
> always Returns the default.
> 

That isn't available in A2K or below.

The surest way is to read a registry key:

For NT, Win2K and above, 
It's "Device" under 
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows

In W95/98/XP 
It's "Default" under
HKEY_CURRENT_CONFIG\System\CurrentControlSet\Control\Print\Printers
-- 
Stuart





More information about the AccessD mailing list