If you read the function you will see that it requires 4 parameters.

quote:
;$PRServer = Printserver
;$PRShare = Sharename of the Printer
;$Printername = The real Name of the Printer (not of the PrinterDriver!)
;$PrtGroup = The Group in the Domain where the user must belong to, to get the printer

none of which are listed as optional.
_________________________
Home page: http://www.kixhelp.com/hb/