mps581
(Fresh Scripter)
2007-11-13 09:48 AM
AddPrinterConnection vs. rundll32 printui.dll,PrintUIEntry

Hello All,

I've been wondering if anyone can give me a good comparison of using AddPrinterConnection in KiXtart or the rundll32 printui.dll,PrintUIEntry method explained in MSKB article 189105.

Right now I'm using AddPrinterConnection in KiXtart with a unc path to a location on an existing print server to add new printers when a user logs on.

However, the method in Microsoft's article shows an example of how to directly add an IP printer to a workstation, with the creation of the respective IP_192.168.X.X port on the workstation.

Does anyone out there have a lot of experience using the Microsoft method?
If so, some pros and cons would be helpful.

Thanks again.

- Mark


AllenAdministrator
(KiX Supporter)
2007-11-13 03:46 PM
Re: AddPrinterConnection vs. rundll32 printui.dll,PrintUIEntry

Please see... Addprinter() - http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=84165#Post84165

Addprinterconnection is the way to connect to NT Based print servers, and in most cases is the preferred way of doing things. Once the printer is shared correctly, the print drivers come over when you add the connection.

Addprinter(printui.dll,PrintUIEntry) is a way to add a Local printer (including IP, LPT, COM) to a workstation, and it requires the print drivers be available to install.