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
I think you meant to link to http://labelwriter.com/software/dls/sdk/js/DYMO.Label.Framework.1.2.5.js
The links have been fixed
Also, this version still returns 1.2.4 when one queries dymo.label.framework.VERSION
Although the version number reported is wrong, it is actually 1.2.5. We are in the process of fixing this
Terrific, thank you! Can you confirm when the download here has the proper internal version number. Meanwhile it is working well!
Agreed, when the file is totally finished I’ll be happy to install it.
The dymo.label.framework is reporting the proper internal version number (1.2.5) now.
Yup, agreed. The posted one has fixed the version number.
Is there anything that could majorly break when upgrading from 1.2.4? Or is it a smooth upgrade process?
It should be a smooth process. The only change is a fix to support IE11.
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.
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?
Leif,
You can download our SDK samples which contains some documents highlighting most of the APIs
http://www.dymo.com/en-US/dymo-label-v8-software-developers-kit-dymo-sdk-v8-windows-p#tabContainer
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.
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.
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.
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
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
Thank you, we are aware of the issue and we are working on a plan.
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");
}
Hi Balla,
There are certain restrictions on what characters the barcode data can contain, how long the data is, etc. Make sure the data you are setting on the barcode is valid for the that barcode type. You can search on here http://en.wikipedia.org/wiki/Barcode#Barcode_verifier_standards what kind of data can barcode contain as per it’s type.
Thanks
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;
} ());
There is the link you could download sample code using DYMO-javascript library.
open the link and see the page display all printers you connected to
http://www.labelwriter.com/software/dls/sdk/samples/js/PrintLabel/PrintLabel.html
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
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.
Please make sure that you are running the latest DLS v8.5.2 http://download.dymo.com/dymo/software/Mac/DLS8Setup.8.5.2.dmg
Then try the following steps:
– Close Safari
– In Finder, navigate to Applications folder, right click on Safari icon, select “Get Info”
– Make sure Safari is set to run in 64-bit mode (the default) or “Open using Rosetta”
– Open Safari
– open http://labelwriter.com/software/dls/sdk/samples/js/CheckEnvironment/CheckEnvironment.html, click “Check”, no errors should be displayed
– open http://labelwriter.com/software/dls/sdk/samples/js/PreviewAndPrintLabel/PreviewAndPrintLabel.html. You should be able to see the label and print it.
The link no longer works – where is the file now? The link just redirects to the homepage.
The labelwriter.com is currently down. Please see http://developers.dymo.com/2015/04/16/labelwriter-com-outage-3/ for more information.
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.
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.
This should be helpful to you.
http://www.labelwriter.com/software/dls/sdk/docs/DYMOLabelFrameworkJavaScriptHelp/index.html