Hi i am getting this exception when i am trying to create printserver object. Here is my code
PrintServer printServer = new PrintServer(@"\\" + printServerName);
PrintQueue printQueue = printServer.GetPrintQueue(printerName);
I trying to get the printers from another machine which is windows server 2012, same code works fine if i try to acess some OS based system. Any help will be appreciated. Thanks in advance
Shweta LodhaPosted Apr 14, 2014, 11:07 AM
sagar shindePosted Apr 14, 2014, 3:04 AM
Shweta LodhaPosted Apr 10, 2014, 12:20 PM
give a try to this:
1) Go to Control panel
2) Turn Windows feature on or off
3) Click on checkbox 'Print and Document service'
4) Install