none
Connect to remote printer using ASP.net C# RRS feed

  • Question

  • Hai frndz. . . . i want to connect remote printer at server side using C# asp.net pls help me frnds. . . .



    • Edited by Dinezh Saturday, September 28, 2013 11:51 AM
    Saturday, September 28, 2013 10:05 AM

Answers

  • Hi Dinezh,

    The WMI Win32_Printer class provides a method called AddPrinterConnection to add a network printer to the list of local printers. The code below shows how to connect a network printer using the Win32_Printerclass. Please refer to http://stackoverflow.com/questions/16040148/add-printer-to-local-computer-using-managementclass to see the connect code.

    I recommend you build a console application and confirm the code could work, and then merge it into your ASP. NET application.

    If you have any ASP. NET programming problem, please post a new thread on ASP. NET forum for more efficient help. http://forums.asp.net/

    Best Regards,

    Hetro


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Monday, September 30, 2013 6:18 AM
    Moderator