Nov 292016

Hi everyone,

Over the years, there has been a lot of confusion regarding our SDK samples. In the past, to get our samples, you needed to download an “SDK Installer” from The “SDK Installer” name was a bit misleading as the installer only contained samples, no binaries. As you know, all the binaries required for our SDKs are installed as part of DLS. So in order to clear things up, we’ve consolidated all of our samples into one ZIP file. This ZIP file contains the following:

  • DYMO Framework Samples for C# and C++
  • DYMO SDK High-Level COM Samples for C++, C#, VB, and ASP.NET
  • DYMO SDK Low-Level COM Samples for C++
  • Documentation for both the DYMO Framework & DYMO SDK

This ZIP file can be downloaded here: Please note that all of the samples in the ZIP file are intended for use in Visual Studio 2015 and using .NET 4.5.1 where applicable.

We also have a number of JavaScript samples that can be explored. While we do not provide the source for these samples directly, you are free to use the dev tools within your favorite web browser to check out the source code for these samples.

  • Print Me That Label – a simple JavaScript sampled that can be used to check if DLS is installed properly and the JS SDK is functioning correctly
  • Preview and Print Label – see a preview of a label in the browser and print the label
  • Print 2 Labels – example of multiple label printing
  • QR Code – barcode printing example
  • Spreadsheet – example of printing multiple labels from an online data source

Furthermore, we have a a diagnostic sample that can be used to ensure your dev/client environment is setup correctly.

  • Check Environment – runs a quick check of your setup and brings to your attention any potential problems

Happy coding!

  154 Responses to “Sample, Samples, Samples!!!”

  1. Hi, sometime ago I developed an open source Windows program which use Meetup API, webcam, database, and Dymo SDK.

    The program download a list of members which go to a event, using an API, it put members in a database, and when a member in the event use a QR Code in the webcam, the program print a label with the member name in a Dymo Label.

    If someone want it: , and sorry for my bad english.

  2. Hello,

    Still no latest solution regarding Android Platform. I was waiting for a year :(. Hope there could be some in 2017

    Anyway thanks for the SDK and samples.


  3. Hi,

    I’m currently trying to use Powershell on Windows 10 to automate address label printing with a LabelWriter 450 and the latest version of the Dymo Label software. The script works great except right at the end, where I’m getting a massively frustrating error on a simple but crucial step in the process.

    When I try to call [Dymo.Label.Framework.Framework]::GetLabelWriterPrinters(), I get the error:

    Exception calling “GetLabelWriterPrinters” with “0” argument(s): “Object reference not set to an instance of an object.”

    Any ideas why this is happening?? I’ve seen a number of samples and posts on here where this call is made with no issues, so I can only assume there’s something weird going on with the Dymo software / .NET / registry. Any insight would be much appreciated!

  4. Hi,
    i have Dymo LabelManager Pnp in Windows 10 with driver V8 and DLSSetup. and the example above both in VB and C++ but nothing working.
    I can’t see the printer.
    With DLS8Setup. i can see the printer but i can’t print.

    what can i do?
    Thanks in advantage


  5. Awesome, if you now make working sample for Dymo scales so I don’t have to use third party software that would be A+++

  6. HELP
    version 8.6 has been made available and users are getting prompted to update
    HOWEVER several elements of printing to labels in our webbased software is NOT WORKING with this version.

    I conctacted DYMO support and they said the following:
    Jen P (12/14/2016, 2:47:30 PM):
    It’s not the DYMO software, it is the browsers that stopped supporting our Framework.
    We made them aware that the update was coming out and they chose not to be compatible with the updated software.

    So, the issue you have may be with the web browsers, not our application.

    Me (12/14/2016, 2:48:06 PM): that was an older problem that was fixed in 8.5.3 if its broken again that is a huge issue.

    Jen P (12/14/2016, 2:48:46 PM):
    Version 8.5.3 allowed printing through third party, web based applications.
    The new version of software was updated, and the browsers chose not to update with us.

    Version 8.5.3 is what your clients will need to run if they wish to continue to use the DYMO Label Framework.

    Again, you are more than welcome to contact our Developers directly to see if they can add you to some kind of list that they may keep.

    I am surprised that there has been NO notice on this blog about the affect 8.6 will have to Framework!
    We are going to have to see if we can work around this OR we will have to find another solution.

    I cant believe this is not going to affect a large amount of software that is webbased and using DYMO …

    what is the alternative?

    And how long will 8.5.3 work?

    sign me completely shocked

  7. Yesterday I said everything works now BUT…

    Using 8.5.3 version and the new JS works perfectly, then I updated to 8.6 and now even the program don’t start. removed all and reinstall solved the dymo program but not the web service as I’m getting 400 error (POST https://localhost:41951/DYMO/DLS/Printing/PrintLabel 400 ()).
    I will investigate now and post later.

  8. Back to 8.5.3 and everything works again :-)
    For those that don’t keep the old version download it here

    • For all those that are experiencing issues with 8.6, can you confirm that the DYMO web service is running locally on the client? You should see an icon in the Windows tray:
      Web Service

      If it is running, can you right click on it and select Diagnose…. This will open a browser to let you know if the web service is up and running.

      • Yes, web service were there and the diagnostics is ok too, but 400 error if I do printing from file not on my PC locally.
        Currently installed and everything is working (after a few uninstall/installs). Win 10

  9. I haven’t completely tested 8.6 yet but it appears to be mostly working. I have found one issue so far, the “jobTitle” print param is ignored, it just shows up as “Printing Picture”.

  10. I have migrated our system to the new SDK/API.
    The first problem is that rendering labels with graphics always fail.
    I have removed the graphics and now the preview works.

    When I try to print I always get 400 bad request.
    I have tested also the samples here of:
    “Print me that label” and “Preview and Print Label” and both get me the same result.
    Can you confirmt hat these samples work for you with Dymo software 8.6.611?

  11. Also I check the environment with the check environment sample and got:

    isBrowserSupported: true
    isFrameworkInstalled: true
    isWebServicePresent: true

  12. Can I downgrade/do anything to get it back to work until then?

  13. Any samples for JavaScript? I downloaded DLS 8.6 and now my web applications will no longer function. I uninstalled 8.6 and installed 8.5 and they work again. When on 8.6 and using Visual Studio I have an error on each page:

    Type ‘DYMO.Label.Framework.ILabel’ is not defined.

    Did you drop JavaScript support for 8.6?

    • Nevermind. I simply removed the DYMO.Label.Framework.ILabel and updated the javascript from the older DYMO.Label.Framework.ILabel to your newer DYMO.Label.Framework_2.0.js and it seems to be working again.

  14. Not too many code samples in 8.6 SDK for any VB and Access. Haven’t figured out how to manipulate font type and size. Web server is not needed. Tried all three DYMO objects (AddIn, Labels, LableEngine) without success. Found no code samples here.

    • Hi Harold,

      I downloaded the file and was able to find a VB sample under SDK Samples\High Level COM\dotNet\VM Sample.


      • Jeff,
        Thank you. I didn’t explain myself clearly, sorry. Found dozens more template *.Label files buried in another dir. With them I can cut and paste to create a template I need.

        I still haven’t found a way to manipulate font name, size and other properties from code.

        Again, thank you.

      • Jeff,
        Just found the graphic interface for designing label templates. Guess I’m still having trouble getting over having to program everything. Been programing since windows ver 1 and gwBasic. :)


  15. Hello,

    could you please help me and tell how I can force Labelwriter to use TEXT quality with barcodes (when using javascript framework)?

    I have tried many different commands, but always normal barcodes prints very slowly. Only QR code prints OK after I changed quality in DYMO Label v.8 software. Still example UPC codes prints slowly!

    • Hi Antti,

      My understanding is that you want to print barcodes using the fast speed instead of the slow speed, correct? That is not a good idea, because if you print barcodes with draft quality they end up being unscannable. That’s probably why the example UPC codes print slowly.


      • Hi Jeff,

        yes faster speed is that what I want just now :)!
        I know that faster speed is same as weaker quality, but still I want print my labels by using TEXT quality instead of Barcodes and graphics.

        I printed UPC barcodes with Dymo label software and always barcodes were scannable even I selected Text -quality (= faster). Now I would like to know how can I force js framework to use that text-quality? I suppose that it should be possible?


  16. Running latest JS SDK codes. On MacOS. All diagnostics checkout fine for the web service. In the Browsers (Chrome and Safari) the checkEnvironment is:

    [Log] checkEnvironment > cachedWebPort : 41951 (dymo.js, line 107)
    [Log] checkEnvironment > trying async service discovery (dymo.js, line 107)
    [Log] _createFramework > return _framework : undefined (async) (dymo.js, line 107)
    [Log] onEnvironmentChecked > checkResult isBrowserSupported : true, isFrameworkInstalled: true, isWebServicePresent: true, errorDetails: (dymo.js, line 107)
    [Log] chooseEnvironment > WebServicePresent (dymo.js, line 107)
    [Log] Printer should be OK now with the init we did… (products, line 83)

    But NO PRINTERS are ever reported as found, making this a problem. Can anyone point me in the right direction for getting printers to be found please.


  17. Hi, I have an application that uses the label framework with .net framework 4.0;
    Upgrading to dls 8.6 breaks my application and I cannot add the new DYMO.Label.Framework dll because it’s compiled with .net 4.51
    Do you have a version compiled with .net 4.0 ? I cannot change the framework on my application because I need to support a lot of old xp installations still active.

    • Hi Daniele,

      We no longer support Windows XP. What version of the installer were you using previously?


  18. Hi I have had a Web based solution in place for a few months but the deployed application started issuing an error message: –
    PrintTicket provider failed to bind to printer. Win32 error: -2147467231

    I found that by changing the Application Pool to use a User Profile with administrator permissions, the problem was resolved.

    I cannot leave the live environment with this configuration, is anyone able to shed any light on what permissions may be needed that is not available to the standard IIS_USRS profile.

    The environment details are as follows: –
    Web Server is Windows Small Business Server 2011 Standard
    Development PC is Windows 10

    Application written in ASP.Net VB using Visual Studio 2015

    DYMO software is 8.5.3 on the server, trying to fix the problem I upgraded to 8.6.1 on the PC This now prevents me from changing anything in the live environment until I upgrade DYMO on the server or downgrade my PC back to 8.5.3

    The problem does not manifest itself when running in VS 2015 debug mode, it is only a problem once published to IIS, which is what led me to check permissions on the Application Pool. This solution does not work on the PC though, but that may be because I have the User details configured incorrectly.

    When it does work properly it prints labels from records selected from a gridview list with both text and images.

    I hope someone is able to help.

  19. Hi,
    I’m integrating the DLS COM SDK into an application and was wondering if it’s possible to get a ‘preview’ of the label with the filled in data as an image through the SDK.

    Thanks for the response.


  20. There’s mention in the previous blog posts about where to find the XML Schema;
    The complete xml schema for the label file format is available on

    However, formats saved with DYMO Label v.8.6.611.42161 have elements that aren’t defined in that xsd, for example;

    Is there a version of the schema that has those elements defined? and if so where is it?

  21. Hello,

    i have successfully used the javascript-sdk to print labels on the computer where the printer is attached to (aka localhost).

    My question: Is it possible to print from a remote computer, which has not installed the printer driver and sdk? I’ve tried opening the website served by apache web server, but getting “No DYMO printers are installed. Install DYMO printers.”
    Tried also calling the webservice directly. Results in “HTTP Error 400. The request hostname is invalid.”

    Thx for the response.

  22. Hi,

    The JavaScript framework is excellent. However, I have 2 questions to anyone that can help. I have not been able to find information on the following:

    How do I get a finished callback or track the progress/status of a single print? I would like to show the user the status of a single print so that they do not press the button twice.

    Where can I find the JavaScript framework’s API documentation?

    Kind regards

    • Hi Geoff,

      The API documentation is included within the SDK’s ZIP file. You should be able to find the answer to your first question within there.


  23. Hi,

    I’ve recently updated an app to use the js framework and it works fine on OSX but on Windows I’m coming across two different errors.
    1: When trying to render a preview (label.render(renderXML)) with an ImageObject that contains a base 64 string in the tag (and not just a source url) it gets an error “[0] The calling thread must be STA, because many UI components require this.”

    2: When printing, if the text fields font tag is not self closing but rather it errors when trying to print. “[0] Value cannot be null.\u000d\u000aParameter name: String [1] There is an error in XML document (27,106). [2] There is an error in XML document (27,106). [3] There is an error in XML document (27,106). [4] There is an error in XML document (27,106). [5] Unable to load label template ” and due to how the xml is generated on the server there isn’t much control over how it closes tags, besides for this being unexpected.

  24. I just worked from the samples and notes in the “DYMO Label Web Service FAQ” and converted my code to use the new Javascript method. After a few hiccups, it works (in Chrome/Edge/Firefox)! I found I had to put all my relevant code, starting from the creating of the listener on my Print button, into the DYMO “function onload() {…}” so the functions could access each other. Some of these were in a jQuery ready function previously.

    My print button is in a jQuery dialog. In that dialog initialization, I have the Print button calling my print function when used. That print does some jQuery $.ajax to get the labelset XML. Then that is loaded into the label, it checks for a printer, and prints.

    It felt odd to put functions that were in my jQuery ready function into the DYMO “function onload() {…}”. I ended up putting the jQuery ready function on the outside surrounding the DYMO onload function. Theoretically a document.ready should happen before or at the same time as window.onload, right?

    Is that the right way to do it?

  25. Both the SDK FAQ and the SDK Manual mentioned VBScript samples but the sample code is nowhere to be found. Is there a simple, ‘5 lines of code’ VBScript sample somewhere like what’s mentioned in the FAQ? Thanks.

  26. Hello,
    I have just installed the latest version of DLS with webservice.
    Everything seems to be ok.
    If i try to print through your example pl.html , the printer is recognized and I can print normally, but if i try from a remote pc to insert the url (tried also locally specifing http://localhost:41951 but didnt work) i get this error: cannot connect to ip:port
    I have also opened the specific port on firewall but no changes.
    host OS is windows 2012

    Can you be so kind to help me to troubleshoot this issue? Thank you in advance

  27. Loaded Dymo Label Works fine. Loaded V8 SDK. Tried using the samples in C# and VB using VS 2015 and they compile fine but do not print. Any ideas?

    • I see these exceptions when running:
      Activated Event Time Duration Thread
      Exception: Exception thrown: ‘System.IO.FileNotFoundException’ in mscorlib.dll (“Could not load file or assembly ‘DYMO.DLS.XmlSerializers, Version=, Culture=neutral, PublicKeyToken=5426002a38745af9’ or one of its dependencies. The system cannot find the file specified.”). Exception thrown: ‘System.IO.FileNotFoundException’ in mscorlib.dll (“Could not load file or assembly ‘DYMO.DLS.XmlSerializers, Version=, Culture=neutral, PublicKeyToken=5426002a38745af9’ or one of its dependencies. The system cannot find the file specified.”) 0.68s [3916]

      Activated Event Time Duration Thread
      Exception: Exception caught: ‘System.IO.FileNotFoundException’ in mscorlib.dll (“Could not load file or assembly ‘DYMO.DLS.XmlSerializers, Version=, Culture=neutral, PublicKeyToken=5426002a38745af9’ or one of its dependencies. The system cannot find the file specified.”). Exception caught: ‘System.IO.FileNotFoundException’ in mscorlib.dll (“Could not load file or assembly ‘DYMO.DLS.XmlSerializers, Version=, Culture=neutral, PublicKeyToken=5426002a38745af9’ or one of its dependencies. The system cannot find the file specified.”) 0.68s [3916]

      • Hi Dan,

        Are you running your own application of is this a result of running one of the samples? If so, which one?



        • Hi Ron,

          This is running the VB sample.


          • Hi Ron,

            Note, my own VB application does the same thing. That led me to try the sample to see if I could determine what was wrong. DMO Label V8 prints fine.


    • Hi Dan,

      Can you get a list of printers from the SDK?


      • Hi Ron,

        This is my sample file path from the ZIP file:

        SDK Samples\High Level COM\dotNet\VB Sample


  28. Can someone point me in the right direction so that I can figure out how to print a label with a product description, price, and a UPC label? I wish to do this with the javascript SDK.


  29. Yes, the DYMO LabelWriter 450 shows up in the pull down box. Just get the exceptions when I try to print.

  30. Hello,

    Firstly, thank you for this cool framework.

    I can print labels on Chrome and Firefox but Safari couldn’t get the printers. Is there any plug-in for Safari v10.1.1?

    Also, I couldn’t get any result when I tried to check environments via on Safari?


    • Is DLS installed on your MAC? You will need to make sure the webservice is running.


    • We use a browser independent solution. The javascript connects to a webserver that is running on the local machine. We do not provide plug-ins for browsers anymore. Make sure your webserver is running is my best advice.


  31. I created this label and the and have tried other labels that have worked but this is the exception that I get. This is in visual Studio 2017 C#.

    using DYMO.Label.framework;
    private void button1_Click(object sender, EventArgs e)
    var label = DYMO.Label.Framework.Label.Open(@”\NRTLeakage.label”);

    DYMO.DLS.Runtime.DlsRuntimeException: ‘Unable to load label template \NRTLeakage.label”

    The complete Path to the label is good I only show the last of it.

    XmlSchemaValidationException: The element ‘DieCutLabel’ has invalid child element ‘IsOutlined’. List of possible elements expected: ‘PaperName, CustomPaper’.

    This is as far as the debug will run

    Is the SDK broke? or is there a fix for this

    • Hi John,

      Does this label open properly in DLS? Are you using the same version of DLS to create the label and on the machine you are running your custom application?

      This problem looks like a mismatch of versions.


    • did you solve your issue?

  32. I am running the latest and gratest on both. I will try an uninstall on both to see if that works.

    • How did you create your label? We usually recommend creating the label in DLS and then use the label in your custom application.


  33. Hi,

    I just tried looking at the example for printing multiple labels from a spreadsheet linked above:

    but got an error that the spreadsheet does not exist. Is it possible to get that example restored? I’m looking for a way to print multiple labels from a web page and not sure if this is possible and how to go about it.


  34. Hi,
    I try to run a C# sample in DYMO Label v.8 SDK with Visual Studio 2010 and Dymo Label v8.6.2. I got a compile errors “The type or namespace name ‘DYMO’ could not be found (are you missing a using directive or an assembly reference?)”. It does not find DYMO.Label.Framework, but reference shows correctly.

    Any idea what could be the problem?


  35. Any chance of getting a Powershell example?

    I’m trying to print a label with a Powershell Script I can schedule. I can get Dymo printers and manipulate labels, but I can’t print. I get an error “Object reference not set to an instance of an object.” at $label.print(“DYMO LabelWriter 450”)

    • Hi James,

      Can you get a list of printers and see if the printer named “DYMO LabelWriter 450” appears in the list?


  36. hi, my DYMO print very well but the images (png) they are not to resolve?

  37. Hi, I’m trying to print a label from this example:

    + This is the framework DYMO.Label.Framework.2.0.2.js
    + The Web Service is running.
    + The label programmed from the JS is the 30252, I’ve programmed the 30256 Shipping (With his dimensions)

    So, my problem is, how can I create an object diferent (TEXT)? All the examples are in fields “textarea”

    Or, my project is programmed on Angular:
    + A section of HTML where is the data(ngModels) that I neet to print from the inputs:
    So, how can I print completly “div” of HTML without the answer ID is null or undefined?

    One Barcode, Four field Text, and one Image.


    • Hi Johan,

      The best approach is to create a label layout using our DLS software and access that label file in you JS code. The contents of the label objects can be easily changed using our SDK.

      Hope this helps,

  38. Is it possible to use this SDK with a Windows UWP application? Are there any samples of that? With IOT growing I would imagine that would be great for a lot of future users! Please let me know.

  39. Any chance anyone could post a simple ANSI C type of sample using the Dymo Framework ?

  40. I have successfully developed an app which uses the Dymo SDK and now need to deploy it to a few customers.

    I am a little confused as to which dependencies the custeroms will need:
    * SDK module installer
    * or Printer Drivers
    * or DSL package


    • Hi Diego,

      You will need your customers to install DLS. The drivers come with with DLS installation.


      • Ron,
        The DSL package correct ? Not the SDK ?

        Also, can I bypass either of the above and simply install the Printer drivers ?


        • Diego,

          You need to install DLS (DYMO Label Software) on all client machines. No need to install the SDK or drivers.


  41. hi

    can’t get the printer to work in firefox
    get a SEC_ERROR_UNKNOWN_ISSUER error in my debugger network tab
    yes i know i can add an exeption,
    but i use the printer in a web application, and dont want the customer to add a exeption for the printer to work

  42. Hi, I’m tying to hook my C# application up to the DYMO.Label.Framework and get it printing on my Dymo labelwriter 450 turbo.

    I’ve got DYMO.Label plugged in via Nuget, and the DLS software v

    Just doing a simple test to open a label with:
    var label ="label.label");
    I’m getting:

    XmlSchemaValidationException: The element ‘DieCutLabel’ has invalid child element ‘IsOutlined’. List of possible elements expected: ‘PaperName, CustomPaper’.

    I’ve tried multiple labels directly created in the DLS software. I get this with Unchanged sample labels as well.

  43. Hi,

    Where can I find the xml code to print a basic barcode label with the number. How can you control the size of text and barcode?


  44. Ron,
    I have a new issue, I am trying to detect whether the printer failed to print a label.
    I use the following -> error = Dymo_IDymoAddin6Print (printerHandle, NULL, 1, VTRUE, NULL);
    Unfortunately error is always = 0, regardless of the printer state.
    For instance, if I pull the label ribbon out of the print head prior to this command, the printer detects the issue, blinks blue and the window driver pops up the error… but error still equals 0.
    I need for my application to capture the error and not the windows driver.. Furthermore, I would also like to wipe the existing print command from the windows Printer Manager so that a label is not printed when the label ribbon is loaded.
    But first things first, error ?


    • My mistake, the correct function is -> error = Dymo_IDymoAddin6Print (printerHandle, NULL, 1, VTRUE, &result);
      Error is 0 which is correct, but result is always -1 regardless of the printer state.

      If I cannot detect the printer state after print using the function above, what other way can I accomplish this ?


    • Unfortunately, only the OS knows about the error… Our code sends the data to the spooler, the spooler interacts with the printer and the OS.

      • That is very disappointing, in the very least any printer SDK should include a printer status function.

  45. Is there a known issue with printing labels from Microsoft Edge. I have a classic asp page which is using the Javascript SDK which works from Chrome / IE11 / Firefox. From Edge, the call to printers = dymo.label.framework.getPrinters(); does not return any printers. I have the latest version of the Dymo software installed and am using the following javascript ref DYMO.Label.Framework.2.0.2.js. Any help greatly appreciated.

  46. I’m getting an error “Type ‘ILabel’ is not defined.”, i’ve referenced the DYMO.Label.Framework, i’ve also created a MPN label with 2 referenced points as below, and the label is located on C:\

    VB.Net Code:

    Dim label_dymo As ILabel = Label.Open(“C:\MPN.label”)
    label_dymo.SetObjectText(“lblFirstName”, “TEST”)
    label_dymo.SetObjectText(“lblLastName”, “TEST”)
    label_dymo.Print(“DYMO LabelWriter 450”)

    I’ve tried modifying other examples with no luck, or am i just having a moment?


    • Hi Peter,

      Do you have DLS installed on your development machine? The DLS installation provides the install for several COM objects that are necessary to make the SDK work.


      • Hi Ron,

        Thanks for the speedy reply, i’ve downloaded the DLS installer again and ran it – and its saying i already had the latest version installed – so i’ve uninstalled it and reinstalled, no luck either.


        • Hi Peter,

          That is odd, it sounds like there is a problem with the way your solution is set up. Can you try to compile and run some of our samples?


          • HI Ron,

            I can compile and run the high level com version, but it references interop.dymo.dll instead, is there a short way to modify my code to work with the referenced dll?

            Dim label_dymo As ILabel = Label.Open(“C:\MPN.label”)
            label_dymo.SetObjectText(“lblFirstName”, “TEST”)
            label_dymo.SetObjectText(“lblLastName”, “TEST”)
            label_dymo.Print(“DYMO LabelWriter 450”)


          • Hi Peter,

            It is best to mimic the way that the samples work. That will give you the highest chance for success.


  47. Any samples that work with VBA and Access 2016? I was using the Attendee.mdb, but am running into a problem where every time go to hit the print button I get Unable to Create OLE Objects. Am I missing something?

  48. I am using Version 8. Still haven’t figured this out.

  49. Dymo Version to be exact.

  50. I would need to update every PC in my company. That most likely is not going to happen. Is there any reason I would get the cannot create OLE objects error that I can resolve with this version?

    • Can you start with you development machine and see if the update takes care of it? If the same issue exists, we can look for other causes.


      • I have upgraded to version 8.7.0 and the error I was getting before was resolved and labels are printing. However, it does not seem to select the correct label when printing. I create a label and place it in the labeltype table, but it will not change to that label type and print to it. This is the code snip that is running.

        Function Defaults()
        'This function sets the Filename caption on form "Main" to current Label Type
        'and sets the variable Loaded to True (assumes DLS is already running)
        Dim dbs As Database, rst As Recordset
        Dim FileStr As String, Label As String
        Set dbs = CurrentDb 'set database
        Set rst = dbs.OpenRecordset("LabelTypes") 'open the table
        'set Value to current Filename
        Forms![Main]!Filename.Caption = Forms![Main]!LabelType.Value
        Label = Forms![Main]!LabelType.Value 'set Label to Filename
        FileStr = rst![Filename] 'set FileStr to Filename
        Forms![Main]!Filename.Caption = FileStr 'update Filename caption on form
        Loaded = True
        End Function

        Function GetDesc(Desc)
        'This function returns the current Label Description by searching
        'the values in the table "LabelTypes"
        Dim dbs As Database, rst As Recordset
        Dim FileStr As String, Label As String
        Set dbs = CurrentDb 'set the database
        Set rst = dbs.OpenRecordset("LabelTypes") 'open table
        Label = Forms![Main]!Filename.Caption 'set Label to filename on form
        If rst![Filename] = Label Then 'if match
        Desc = rst![Description] 'then return description
        End If
        rst.MoveNext 'if not then goto next record
        Loop Until rst.EOF 'search to end of table
        End Function

        Function GetObject(Obj)
        'This function searches the table "LabelTypes" for a match
        'of the current Filename, then returns the name of the object on
        'that label which is the target for the selected text
        Dim dbs As Database, rst As Recordset
        Dim Label As String
        Set dbs = CurrentDb 'set the database
        Set rst = dbs.OpenRecordset("LabelTypes") 'open table
        Label = Forms![Main]!Filename.Caption 'set Label to filename on form
        If rst![Filename] = Label Then 'if match
        Obj = rst![PasteObject] 'then return object name
        End If
        rst.MoveNext 'if not then goto next record
        Loop Until rst.EOF 'search to end of table
        End Function

        Function PrintLabel()
        'This function prints the current record in the table "Attendees"
        'using the currently selected label
        Dim FileStr As String
        Dim Str As String, Pipe As String, Desc As String
        Dim hKey As Long, cb As Long, path As String
        Dim q
        BadgeTitle = "ACME Seminar" 'define Title of seminar
        Pipe = Chr(13) + Chr(10) 'line delimiter
        FileStr = Forms![Main]!Filename.Caption

        'Read label files path from the Registry
        'RegOpenKeyEx HKEY_CURRENT_USER, "Software\DYMO\LabelWriter\Directories", 0, KEY_ALL_ACCESS, hKey
        'RegQueryValueExNULL hKey, "Label Directory", 0&, REG_SZ, 0&, cb
        'path = String(cb, 0)
        'RegQueryValueExString hKey, "Label Directory", 0&, REG_SZ, path, cb
        'path = Left(path, cb - 1) + ""
        path = ""

        On Error Resume Next
        Call GetDesc(Desc) 'gets description of current label
        Call GetObject(Obj) 'defines object to paste text to
        Call CreateOLEObjects 'create Dymo OLE objects
        'opens the template in DLS using the correct label type
        DymoAddIn.Open path + FileStr 'open label in DLS

        • Hi Dan,

          I don’t understand the issue that you are having. Could you explain it a different way?


          • There is a table in the access database called Labeltypes. In it has a list of labels and the File Name. For instance Shipping (30323, 30573).LWL. So when you type in the address information and you go to the form in access and select that label and hit print the code above looks for that label (or at least it use to) and prints the information into the Address box of the Dymo Label. What is happening now is Dymo is ignoring that part of the code where it looks for that particular label and just prints it on a simple address label and not the one I am requesting. For instance in the DLS I formatted a couple of labels to have barcodes and centered text and none of that is coming out on the label anymore.

  51. Hi,

    I have LabelManager PNP device. I want to create an application on C# and JS that prints desired qr code. I follow the instructions but always I got “DIECUTLABEL does not support TAPE PRINTER” error.
    I’ve tried both Dymo Label Framework DSL and SDK.

    In C# application everyting was ok but that gave me this errror. In JS the result was the same.

    In C# application,I’ve added the file as a reference Dymo.Label.Framework.dll.
    In JS application I’ve added the file

    Could you help me? Please.

    • Hi Ismail,

      the issue is the label you are sending to the printer. It is best to start with DLS, create a label that will be used as a template in your application, use the label file in your application to print your desired label.

      Let me know if you have any more problems,


  52. I am trying to added a network printer using this as my base

    I am using a Dymo label writer printer server and it’s getting a IP number.

    It ask for a printer URL am I to guess that would be http://ip number for print server

    That does not work for me nor does the ip# it self.

    So how does one do it using a Dymo Label Writer Print Server ?

  53. Thanks for the relpy,

    Normally I use the label “BarcodeAsImage.label” in this file:

    How can I create qr code label template for labelmanager PNP instead of this label?


    • Hi Ismail,

      The best approach is to use DLS, the desktop software, to create the label you want to use in your custom code. Save the label file and use that label file in your custom code.


  54. I am not a javascript person at all I would like to ask if 2 buttons can be on 1 page to print 2 deferent type of labels.

    The PrintMeThatLable.js has everything in the function onload() it build the Labelset and loads the printer in the dropdown box it does almost everything in the function onload().

    Can all the stuff be moved in to the printButton.onclick = function()

    so then you can have more this 1 button on the html page and it loads and build the label and prints it when the user press the Print button.

    This way you can have more then 1 button to print deferent labels with even deferent info.

  55. ok I have been making changes to the PrintMeThatLabel.js here is my copy

    I am trying to make the

    printButton.onclick = function()

    the user trigger that will load the json data from var labelone = document.getElementById(‘labelone’).innerText;

    build the label and print it.

    Then I want to add other button

    printButton2.onclick = function()

    the user trigger that will load the json data from var labelone2 = document.getElementById(‘labelone2’).innerText;

    build the label and print it

    if I can get it working with just one of the print buttons I can then use that to build more buttons and have a lot of deferent labels the user can print.

  56. ok I tried this

    var PrintParams = dymo.label.framework.LabelWriterPrintQuality;

    label.print(printersSelect.value, PrintParams.text, labelSet);

    this is not working what am I doing wrong ?

    • I have tried

      var PrintParams = dymo.label.framework.LabelWriterPrintQuality;

      faster = PrintParams.text;

      label.print(printersSelect.value, faster, labelSet);

      that didn’t work

      • ok I put a Cap T for Text like

        var PrintParams = dymo.label.framework.LabelWriterPrintQuality;
        faster = PrintParams.Text;
        label.print(printersSelect.value, faster, labelSet);

        This gave been a error msg

        “[0] Data at the root level is invalid. Line 1, Position 1. “

  57. I have tried this

    var params = dymo.label.framework.createLabelWriterPrintParamsXml({printQuality: dymo.label.framework.LabelWriterPrintQuality.Text});

    label.print(printersSelect.value, params, labelSet);

    I did a console on the params and get this


    the error msg I get is params is undefined

  58. ok SO I got it working I was putting the

    var params = dymo.label.framework.createLabelWriterPrintParamsXml({printQuality: dymo.label.framework.LabelWriterPrintQuality.Text});

    in the function loadPrinters()

    Is HAS to be in the printButton.onclick = function()


    var params = dymo.label.framework.createLabelWriterPrintParamsXml({printQuality: dymo.label.framework.LabelWriterPrintQuality.Text});

    label.print(printersSelect.value, params, labelSet);

    PUT IT IN THE printButton.onclick = function() If using JavaScript sdk.

  59. Hi,
    I need to be able to set the number of labels to print.
    How would I do that?
    On the form, I added
    Number Copies

    I don’t see a way to hook into the js.
    In the DYMO.Label.Framework.3.0.js file I found this
    var b=R(“”),d=b.documentElement;a.copies&&S(d,”Copies”,a.copies.toString());
    But not sure how to call it and pass the parameter to print copies.

    • Hi Sherwin,

      If you look at the documentation for the javascript SDK, you will see a parameter named “printparameters”. This parameter will give you everything you need.


      • Ron,
        one step closer.

        var copies = document.getElementById(‘labelPrintCopies’).value;
        // set data
        // Because Android does not support XPath (that is needed for setObjectText)
        // we will use LabelSet instead
        //label.setObjectText(objName, text);
        var labelSet = new dymo.label.framework.LabelSetBuilder();
        var params = dymo.label.framework.createLabelWriterPrintParamsXml({Copies:copies});

        labelSet.addRecord().setText(objName, text);

        // print
        //label.print(, null, labelSet.toString());
        // print and get status
        var printJob = label.printAndPollStatus(, params.toString(), labelSet.toString(), function(printJob, printJobStatus)

        Does not throw any errors but it does not pass the value of the string. If I change the Copies:copies to just Copies. I get the error value Copies not defined.

  60. Hi,

    I want to print internetstamps from Deutsche Post directly to the DYMO printer. The stamps are either returned in pdf (correct label format – 30321 Large Address) or in PNG (some strange format).

    Is it possible to print the send the printer just the pdf and let him print it?

    At the moment, I have created a labelXML with DLS that contains only an image, and then I used loadImageAsPngBase64 and setObjectText to scale the PNG to the label and print it. It feels strange to me that I have to scale the PNG on the lable, if I already have the perfect format as PDF.

    Also scaling the image on the label was not completely clear to me. The mentioned label (30321 Large Address) is 2025×5020 twips large, but the largest image that I could create with DLS was 4313×1882 twips. Somehow widht and height seem not to be correct with RoundRectangle and there is also a small left gap to the image where DYMO definitly could print.


    Although widht and height seem to be mixed up in RoundRectangle, this actually works.

    • Hi Adam,

      Are you attempting to print this label with DLS? Or have you written your own application and you are trying to integrate DYMO printers into it?


      • Hi Ron,

        I have written my own application and I am trying to integrate DYMO printer into it.

        I use Deutsche Post API to order a stamp that either returns an pdf or an png file. I am using the Framework.3.0.js to communicate to the printer. Currently, I am printing it through png files.

        However, printing the png file is a bit complicated, because I need to create a XML File, load it, and stretch the image on, and repeat this for all png’s (each ordered stamp creates one png).

        Where, on the other side, all stamps would be included in a multi-page pdf in the correct format and I would not have struggles with streching something or creating blank XML labels.

        Since the DYMO printer is the only offical label printer supported by Deutsche Post ( I thought its maybe possible to print a pdf directly to the DYMO.

        All the best,

        • I thought its maybe possible to print a pdf directly to the DYMO **through the framework.3.0.js**

          • Hey,

            I am still wondering, is it possible to print a pdf directly to the DYMO through the framework.3.0.js?

            All the best,

Leave a Reply to Ron Cancel 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>