Can I / how can I detect whether a particular printer has been installed? I know the exact name of the printer.
Any help would be greatly appreciated - thanks.
Any help would be greatly appreciated - thanks.
result = Registry.GetKeyNames(HKEY_LOCAL_MACHINE, "\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Print\\Printers"); if result == "" then ~SETUP YOUR ACTION FOR NO PRINTER HERE else ~SETUP YOUR ACTION FOR YES PRINTER HERE end
result = Registry.GetKeyNames(HKEY_CURRENT_USER "\Software\Microsoft\Windows NT\Current Version\Devices\\Printers"); if result == "" then ~SETUP YOUR ACTION FOR NO PRINTER HERE else ~SETUP YOUR ACTION FOR YES PRINTER HERE end
Comment