DYMO Label Inside Out

December 2, 2011

Announcing DYMO Label SDK 8.3.1

Filed under: News,SDK News — Vladimir @ 12:20 pm
Tags: , , , ,

We are proud to announce the release of DYMO Label SDK 8.3.1. This release contains updated documentation and samples, especially for the new DYMO Label Framework API. The SDK installer is available from here.

Note: do not forget to install DYMO Label software, it is required to run any application that uses the SDK. For more information see this blog post.

Online documentation:

DYMO Label Framework .NET Reference documentation

DYMO Label JavaScript Library documentation

17 Comments »

  1. Hi there,

    I’ve managed to get the CDK working on my Mac and I’m now doing tests on my Windows XP machine. I installed the latest SDK, then plugged my label printer in. It didn’t work. So I restarted the computer. It also didn’t work. So I shut down my computer and came back the next day and it still didn’t work.

    Below is my JavaScript. The printers.length is returning 0. Like I said the following code works fine on my Mac, Windows XP doesn’t seem to like it in either IE or FireFox.

    // loads all supported printers into a combo box
    loadPrinters: function() {
    var printers = dymo.label.framework.getPrinters();
    if (printers.length == 0) {
    alert(‘No DYMO printers are installed. Refer to the help file on how tp install DYMO printers.’);
    return;
    } else {
    for (var i = 0; i < printers.length; i++) {
    var printer = printers[i];
    if (printer.printerType == 'LabelWriterPrinter') {
    var printerName = printer.name;
    $('#label_printer').append('’ + printerName + ”);
    }
    }
    }
    }

    Comment by bensinclair00 — February 1, 2012 @ 8:37 am | Reply

    • Feeling a little silly right now. I hadn’t installed the Label Writer software. After doing so it worked a treat :D

      Comment by bensinclair00 — February 1, 2012 @ 8:59 am | Reply

  2. Did you plan to develop it for Silverlight ? Actualy, i’m using Silverlight Out-Of-Browser but i need to call the browser to execute javascript Dymo application…

    Thanks, Etienne.

    Else, for info inside the SDK donwload : the example PreviewAndPrintLabel doesn’t work because opendialog filename is not used, it should be : label = dymo.label.framework.openLabelFile(fileName);

    Comment by Bonenfant Etienne — January 14, 2012 @ 8:19 am | Reply

    • There are several ways to integrate Silverlight:

      ■using DYMO Label Framework JavaScript library. You will have to write some js code to interact with Silverlight app, e.g. to get data to print from it.
      ■using Silverlight 4 printing API. In this case you interact with LabelWriter as with any other printer using printer drivers
      ■using DYMO Label Framework by COM-interop available in Silverlight 4. This will work on Windows only. (please check http://labelwriter.com/software/dls/sdk/samples/SilverlightApplication2.zip)

      Comment by pi — January 19, 2012 @ 4:48 am | Reply

  3. Sorry if this is a stupid question but I am running a DYMO LabelWriter 400 and I can’t seem to get it to print landscape using the SDK. Is it the LabelWriter or the code? I’m using Landscape to make it print landscape.

    Comment by bensinclair00 — December 15, 2011 @ 9:48 am | Reply

  4. I have a customer that basically does not want to use the .label files just wants to write a text and then give up the parameters (width, height string) and just send that to the dymo printer without using the .Label files. :)

    Comment by wijnand — December 14, 2011 @ 5:20 pm | Reply

    • Then, what is the customer’s use case? :) The customer has to have some scenario, and the question is what the problem the customer tries to solve by printing a text with specified width/height.

      At very minimum, a label type (Address, Shipping, etc) has to be specified, the customer has to put this label type inside printer anyway. If the label type is known, you can construct the label on the fly by putting an address/text object on the label with specified width/height.

      Comment by Vladimir — December 15, 2011 @ 1:59 am | Reply

      • The Scenario is they are now accustomed to printing and making their own labels custom their program most likely was using the print driver. Right now I just made generic label templates for hte to use. Where can I find these though? I dobut there are only 9 of them :)

        Basically tehy just want to be able to create a template but isntead of defining a label type they want to define a max width and heighty. I assume they dont want to use the objects either they are basically trying to use the dymo as a regular small printer. Is that last an option?

        Comment by Wijnand — December 22, 2011 @ 11:21 pm | Reply

        • I see. Seems like it is an advanced scenario. We don’t have a list of all supported label types; the easiest way to get it is by “extracting” them from DYMO Label software itself, just run it, and open each label type you are interesting in.

          There is a way to create a “custom” label based on width/height specified by users, but it is definitely an “advanced” scenario and we don’t have any documentation about it. Briefly, you will have to generate a label file xml manually and specify desired width/height. E.g. a custom file, based on the standard “Address” label will look like

          <DieCutLabel Version="8.0" Units="twips">
              <PaperOrientation>Landscape</PaperOrientation>
              <Id>custom_address</Id>
              <CustomPaper>
                  <Size Width="1581" Height="5040" />
                  <PrintableSize Width="1435" Height="4622" />
                  <PrintableOrigin X="86" Y="331" />
                  <Offset X="0" Y="0" />
              </CustomPaper>
              <DrawCommands>
                  <RoundRectangle X="0" Y="0" Width="1581" Height="5040" Rx="270" Ry="270" />
              </DrawCommands>
          </DieCutLabel>
          

          You will have to replace Width/Height with desired width height obtained from the user. Note, that the dimensions are in TWIPS (1/1440 inch). Then, you can open with “empty” label and put/insert any objects anywhere on the label using SDK API calls.

          Comment by Vladimir — December 23, 2011 @ 7:08 am | Reply

  5. Hello Vladimir,

    is it possible to program the dymo labelwriter so that I can pass it the width and heighty of a empty label and just a string with the text in it? Or am i required to give it a .Label where i change the address object?

    Comment by Wijnand — December 12, 2011 @ 10:41 pm | Reply

    • Basically yes, you have to use a .label file. What is your use case? what are you trying to achieve?

      Comment by Vladimir — December 12, 2011 @ 11:14 pm | Reply

  6. Do you have a time frame for when this will be out of Beta? Or is this already available when people purchase Dymo printing products?

    thanks,

    Scott Schmitz

    Comment by scott schmitz — December 8, 2011 @ 8:25 am | Reply

    • Yes, DYMO Label software 8.3.1 (and correspondent DYMO Label SDK 8.3.1) is a production, fully supported suite. If you have DYMO Label software 8.3 and later installed, you can use all of the SDK’s features/APIs.

      Comment by Vladimir — December 8, 2011 @ 8:28 am | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

Join 60 other followers