As a KiX newbie(but a longtime assembler/FoxPro/C programmer)I spent many hours trying to get SetDefaultPrinter("Printer name") to work as described in the docs. The paragraph that explains the parameter "Printer name" seems inaccurate, as it tells you to use "\\servername\sharename" if you previously added a printer with AddPrinterConnection("Printer name"). I spent many hours before I found out the correct syntax is SetDefaultPrinter("\\servername\printer's name"). Using "\\servername\sharename" does not work - it returns error code 2.

Suggestion: rewrite the explanation of the "Printer name" parameter for BOTH commands, something like follows:

AddPrinterConnection:
Parameters:
Printer name: string that specifies the fully qualified(UNC) name of the shared printer, in the format "\\servername\sharename"

Note that, unlike the SetDefaultPrinter("Printer name") command, the "Printer name" parameter used in AddPrinterConnection is the shared name of the printer, not the actual name of the printer.


SetDefaultPrinter:
Parameters:
Printer name: string that specifies the actual name of the printer, in a fully qualified(UNC) format such as "\\servername\printer's name".

Note that, unlike the AddPrinterConnection("Printer name") command, the "Printer name" parameter used in SetDefaultPrinter is the name of the printer, not the shared name of the printer. The printer's actual name is displayed on the General tab of the Properties for that printer.




Thanks!