Microsoft & .NETVisual BasicRetreive the vb object "printer" corresponding to the Default Printer

Retreive the vb object “printer” corresponding to the Default Printer

Developer.com content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

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

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends & analysis

Latest Posts

Related Stories