Sign in to follow this  
Followers 0
lewwy

Printers

3 posts in this topic

Hi All,

I'm just wondering if there is some way in au3 to get a list of the availible printers, along with port listing (for network printing) etc etc? Also IP addresses of the printers.

Share this post


Link to post
Share on other sites



Search for Computer Info UDF by JSThePatriot.

Example:

#include <CompInfo.au3>

Dim $aPrinterInfo
_ComputerGetPrinters($aPrinterInfo)
If Not @error Then
    For $i = 1 To $aPrinterInfo[0][0]
        MsgBox(0, $aPrinterInfo[$i][0], "Port Name = " & $aPrinterInfo[$i][59])
    Next
Else
    MsgBox(0, "", "ERROR?")
EndIf

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

There are even more UDFs for support printing stuff.

Just search for "print" keyword in examples forum.

Don't forget to switch ON "search in titles only" ;-)

Edited by Zedna

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0