0
Answer

Add new printer in Windows using code

Ask a question
Administrator

Administrator

21y
1.9k
1
Does C# (or C++) offer a way to add a new printer in Windows using code? Whenever I log on at a different computer at work I lose my network printer. While waiting for the underlying problem to be fixed (which may never happen . . ), I'd like to have a quick fix by being able to click a button to restore the printer rather than going through the add printer wizard. I'm reasonably proficient in VB but you can't add a printer to the printers collection. Is it possible in another language such as C# or C++? Thanks