Link to home
Start Free TrialLog in
Avatar of Kaprice
KapriceFlag for United States of America

asked on

Read Windows default printer (not Application.printer) in VBA

It appears Access' Printer.DeviceName returns ACCESS' default printer.

I'm looking for a way to read the WINDOWS default printer.

I found THIS which allows me to SET the Windows default printer.

Private Declare Function SetDefaultPrinter Lib "winspool.drv" _
Alias "SetDefaultPrinterA" (ByVal pszPrinter As String) As Long

Open in new window


But, I can't find one that READS it.
ASKER CERTIFIED SOLUTION
Avatar of jerryb30
jerryb30
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Kaprice

ASKER

Perfect! Thanks much.