dcsimg
 

Retreive the vb object "printer" corresponding to the Default Printer

by André Masson

This code sample shows how to retreive the vb object "printer" corresponding to the default printer.

Paste the following code into it's own BAS module (or convert it to a class if required)

'MS Windows API Function Prototypesprivate Declare Function GetProfileString Lib "kernel32" Alias _     "GetProfileStringA                
This article was originally published on Tuesday Jun 22nd 1999
Home
Mobile Site | Full Site