Nov 202013
 

Hello everyone!

A new version of our JavaScript library is now available. This release addresses compatibility issues with IE11. If your web application is compatible with IE11, we strongly recommend that you upgrade to the new version.

The new DYMO Label Framework JavaScript Library 1.2.5 is available here:  http://labelwriter.com/software/dls/sdk/js/DYMO.Label.Framework.1.2.5.js

The latest has been updated to version 1.2.5 as well: http://labelwriter.com/software/dls/sdk/js/DYMO.Label.Framework.latest.js

  36 Responses to “JavaScript Library 1.2.5 now available!”

  1. Also, this version still returns 1.2.4 when one queries dymo.label.framework.VERSION

  2. Is there anything that could majorly break when upgrading from 1.2.4? Or is it a smooth upgrade process?

  3. Question… The link above…

    The latest has been updated to version 1.2.5 as well: http://labelwriter.com/software/dls/sdk/js/DYMO.Label.Framework.latest.js

    Is it reliable to use as a CDN or do you suggest downloading and using a a local script file?

    • We suggest downloading and using as a local script file. This prevents any server outages on our end causing issues with your application.

  4. I have searched a long time for a complete list of the API,but in vain.

    Is the only way to look through all the examples?

  5. I am trying to use the CDN version of the latest JS framework as shown below:

    When I run the basic web page in Chrome, it tells me No DYMO printers are installed. However, when I run the same page on Firefox, it is able to read the printers and find the DYMO LabelWriter 450 Turbo.

    Is this a known issue or is there something different you have to do within Google Chrome?

    Thanks in advance for any help.

  6. How do I set the font size on the label? I am using javascript and the font that prints is too large. Thanks.

    • Hi David,

      The best approach to modify your label (e.g. font size) is to use DLS to design the label that you want to use. When you save the label file, it will contain the label xml that you want to include in your labelXml variable.

  7. Hello,

    I’m trying to run some of these examples using QWebKit (Qt 4.8). My examples are working fine but under QT i can’t get a list of connected printers. Any one has experience using the Dymo JavaScript in Qt Applications?

    Do you know of any SDK for MacOSX to load and print labels in C++?

    Best regards
    Filipe P.

  8. Update:

    My application is being compiled in x64 mode, i enabled the external plugins in Qt WebKit, now i’m getting this error:

    “DYMO NSAPI plugin is loaded but no callable functions found. If running Safari, then run it in 64-bit mode (MacOS X >= 10.7) or set “Open using Rosetta” option”

    Is the NSAPI plugin only compatible with Safari or it can be loaded in WebKit?

    Best regards

  9. Hello, we’re really enjoying the DYMO JS API. Thank you for all your hard work!

    I hear that NPAPI is on the way out (http://blog.chromium.org/2013/09/saying-goodbye-to-our-old-friend-npapi.html). Do you all have a plan for when browsers stop supporting NPAPI?

    Thanks,

    robert

  10. Hi,
    When I print the text “BoC-BC-7E612C9” as barcode directly from the label it prints correctly.
    But when I use it in javascript and print from browser, it does not work. It prints Invalid barcode data.
    The code I am using :
    function multipleprint()
    {
    alert(” Testing 1″);

    var printers = dymo.label.framework.getPrinters();
    if (printers.length == 0)
    throw “No DYMO printers are installed. Install DYMO printers.”;

    var printerName = “”;
    for (var i = 0; i < printers.length; ++i) {
    var printer = printers[i];
    if (printer.printerType == "LabelWriterPrinter") {
    printerName = printer.name;
    alert(printerName);
    break;
    }
    }
    var labelSet = new dymo.label.framework.LabelSetBuilder();
    var record = labelSet.addRecord();
    record.setText("lblbarcode", "BoC-BC-7E612C9");
    record.setText("lblOrderId", "OrderID : SF-41DB2991");
    $.get("TestLabel.label", function (labelXml) {
    var label = dymo.label.framework.openLabelXml(labelXml);
    label.print(printerName, '', labelSet);
    }, "Text");
    }

  11. hi there,

    i go crazy! since three days now im trying to get our dymo 450 twin label writer to run. we have a tiny webbased apache / mysql / php software running in our company. we want to print adress labels directly out of the software. so i started playing aroung with the dymo javascript sdk.

    the code works on my local computer where XAMPP is installed. it works great and the idea is that i send an id with the button to the *.label xml file. this file contains all the print information. it works.

    i copied everything to our main webserver. this one is reachable via ssl and a special port: https://ip_of_webserver:1507. unfortunately it says “dymo is not defined” ALTHOUGH everything is installed on the mainserver. the dymo software, the sdk, everything. i tried everything and i go crazy.

    i dont know what to to. the code is exactly the same. the differences are:

    my computer is just a localhost with opened port 80 on a windows 8 xampp installation 64bit. the webserver is win server 2008, only reachable via ssl and a defined port. do i have t pen ports? are there problems with win8server? is there a ssl problem?

    the framework, in my opinion, is not that easy to understand and i have no idea what to do to get the code running…

    i hope someone can help.

    thanks and greetings from germany

    • this is my current code:

      (function()
      {
      // called when the document completly loaded
      function onload()
      {
      var printButton = document.getElementById(‘druck_button’);

      // prints the label
      printButton.onclick = function()
      {
      try
      {
      var label_url = “https://XXX/adresse.label”;

      var label_adresse = dymo.label.framework.openLabelFile(label_url);

      var dymo_printer = ‘\\\\srv-nem\\DYMO_LW450’;

      label_adresse.print(dymo_printer);
      }
      catch(e)
      {
      alert(e.message || e);
      }
      }
      };

      // register onload event
      if (window.addEventListener)
      window.addEventListener(“load”, onload, false);
      else if (window.attachEvent)
      window.attachEvent(“onload”, onload);
      else
      window.onload = onload;

      } ());

    • Is printer connected to server or client machine?
      If it is connected to client machine, you have to install latest version of DLS on client machine and test print from DLS on the client machine.
      If it is connected to server, you have to implement server side code.

      • hi. the printer is connected via network.

        in my opision this whole thing is very complicated. i spent days now! is there a chance to get help from you directly? for example via skype and teamviewer. i would, of course, pay for that. i dont have to time to spent days and days but it really important to get i to work.

        is there a chance to get payed help from you?

        thanks

  12. DYMO NSAPI plugin is loaded but no callable functions found. If running Safari, then run it in 64-bit mode (MacOS X >= 10.7) or set “Open using Rosetta” option

    I’m using Mac computer OS X Version 10.9.3 and cannot print labels, please advise.

  13. The link no longer works – where is the file now? The link just redirects to the homepage.

  14. Please tell me the process of “how do we add dymo label printer label plug in to InterExplorer ” and “InternteExplore 11” as well ,
    I have installed the software,but it successfully working in firefox browser ,we had customer, who is running all applications in IE only please help out.

    given JS file , where do i place it . after installing the software.

    “http://labelwriter.com/software/dls/sdk/js/DYMO.Label.Framework.latest.js”

    Thanks,
    murali

    • Open the Internet Options and under Custom Level on Security tab make sure that ActiveX and JavaScript has been enabled.

      I suggest to host the DYMO.Label.Framework.js on your web server.

  15. Is there any documentation on this other than the one html example? I’ve3 looked high and low and I’m not able to find anything that describes the javascript API calls anywhere.

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)