Application.ActivePrinter returns UNC instead of Printername RRS feed

  • Frage

  • A printer with name "HP LaserJet 4000" connected as default printer with \\server\share shows in Application.ActivePrinter:

    Word 2010 VBA :           \\server\share

    Word VBA before 2010:  HP LaserJet 4000

    Is there a workaround which works in VBA 2010 exactly as in former VBA ?


    Dienstag, 20. Juli 2010 08:54

Alle Antworten

  • I encountered the same behaviour when I was migrating code to office14, that used the DeviceCapabilities API, which used to require both printername and port.

    In office 14, it looks like the values provided and required for printername and port are the same, namely the UNC-name of the printer.

    Hope that helps!

    Mittwoch, 6. Juli 2011 16:05