AnsweredAssumed Answered

VBA Printer Device Capabilities

Question asked by Andrea Orlando on Dec 21, 2017
Latest reply on Jan 15, 2018 by Andrea Orlando

I want to create a macro that list printer and the relative capabilities (paper size and paper bin).


I have found this article:


but this code don't work:


strDeviceName = Application.Printer.DeviceName

strDevicePort = Application.Printer.Port


There is a workaround ?


(I get the list of printer by GetProfileString API)