Skip to content

Net_SetDefaultPrinter

Sets an installed printer as the default printer for the current user. The printer must already be installed, otherwise the function returns FALSE. Use the function in a user (US) job.

Net_SetDefaultPrinter(sPrinterShare) As Boolean

UNC path to the network printer, or the name of a local printer

If bStatus Then bStatus = Net_SetDefaultPrinter("\\CAPAINSTALLER\PRINTERSHARE")

Scripting Guidelines

Net_AddPrinter Net_DeletePrinter Net_EnumPrinters Net_EnumPrinterPaths Constants Package Property Variables