client machines default printer name

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Lohitha
    New Member
    • Nov 2009
    • 1

    client machines default printer name

    Can we get default printer name(in web application) of client machine in vb/c#.net or with js? reply asap

    thank you.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    No.

    You cannot access the client computer's operating system and you would need to do this in order to find the default printer name. This is implemented as part of browser security.

    The only way you would be able to do this would be to implement an ActiveX control. ActiveX controls are only run in Internet Explorer and are considered unsafe because they access the client's computer, they can do anything they want, and they may actually open other security holes if they aren't implemented proeprly. Most people that I know make sure that ActiveX is turned off in Internet Explorer.

    You may be able to use SilverLight to do this...but even then you would be breaking the Sandbox rules...

    I wouldn't try to determine the default printer name.
    I would let the user choose their printer and would just use the JavaScript print() method.


    -Frinny

    Comment

    Working...