1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Get a list of available printers

Discussion in 'JavaScript' started by rochdi70, Jun 20, 2023.

  1. #1
    Hi guys,

    How can I get the list of printer in client page?

    We currently use an ActivexObject call "MSDesign.WebLabel" to get the list of printer loaded in a dropdown :

    webControl = new ActiveXObject("MSDesign.WebLabel");
    if (webControl!=null) printers = webControl.getPrinters();
    and this will give us a list of printers available in client machine but this does work in Edge or Chrome, is there a tool or simple code that I can use to get me the list of printers available?



    Thanks
     
    rochdi70, Jun 20, 2023 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,686
    Likes Received:
    4,496
    Best Answers:
    123
    Trophy Points:
    665
    #2
    Crikey, you found an activex script that still works? How many years since activex got canned?

    I very much doubt you'll find a script to give you that info. There's meant to be a barrier between Javascript and the hardware. You'll be able to add a print button but nothing more.

    Edit: only canned in 2020, feels like longer ago.
     
    sarahk, Jun 20, 2023 IP