Administrator

Administrator

  • Tech Writer
  • 2.2k
  • 1.5m

Add new printer in Windows using code

Apr 5 2003 11:13 AM
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