DYMO Label Inside Out

November 10, 2011

DYMO SDK Extension Update for Firefox 8.0

Filed under: News,SDK News — pi @ 11:02 pm
Tags:

The Firefox extension for DYMO SDK has been updated to support Firefox 8. The extension is available here. The FAQ article is here.

Please note that the Firefox extension is deprecated. No new development will be done for the extension. For new projects please use the Javascript library from the DYMO Label Framework. We encourage developers to switch to the new API even for current projects. Here are some benefits the new DYMO Label Framework API provides in comparison to the extension:

  • DYMO Label Framework API provides a cross-browser and cross-platform pure Javascript API. The same API supports all major browsers on Windows and Mac. The Firefox extension API can be used only in Firefox on Windows.
  • All necessary Framework installation is done by the DYMO Label software installer. By contrast the Firefox extension must be downloaded by customers separately and installed manually.
  • DYMO Label Framework supports and will support all the DYMO printers. New printers will not be supported by the extension.

The auto-update functionality isn’t included in this version. We will add it later.

October 12, 2011

SDK Troubleshooting Tips

Filed under: Tips — Vladimir @ 5:29 am
Tags:

Suppose you are a developer and you are integrating a DYMO LabelWriter or LabelManager printer into your application by using DYMO Label Framework or older DYMO Label SDK API. Usually the integration is quite simple and "just works", and you can print a first label in a matter of minutes. Sometimes however, something might went wrong and don’t have the expected result. Or everything is fine on your machine, but the application does not work on the customer’s machine. What to do? Here are some tips could help in troubleshooting and investigating the problem.

Check DYMO Label software version

In most common usage scenarios, the DYMO Label software is required to be installed on the same machine where your application is running (for more information, see this and this). Usually we recommend to install the latest available version, unless there are knowing problems with a particular release. The latest version is available from DYMO site, here is the link.

Do a test print from DYMO Label software

Try printing a label from the DYMO Label software. DYMO Label software and the SDK libraries share a lot of underling code, so, if you can’t print by using the SDK, there is a big chance there will be problems with the DYMO Label as well. So, if you can’t print from DYMO Label or there are other problems running it, then contact DYMO tech support. Usually you will be asked to provide installation/configuration information, this can be obtaining by running LWSupport utility from the “[Program Files]\DYMO\DYMO Label Software\Support” folder.

Restart (open/close) web browser

If you are using DYMO Label Framework JavaScript library and just installed DYMO Label software, you might need to restart the browser to have the Framework plugins loaded. Also, you might need to restart the browser if you have added a new DYMO printer.

Verify browser compatibility and the Framework installation status

If you are using DYMO Label Framework JavaScript library, open http://labelwriter.com/software/dls/sdk/samples/js/CheckEnvironment/CheckEnvironment.html and click on “Check” button. The installation information will be displayed.

Collect trace/log information

DYMO libraries can generate log/trace information is not visible to end-user. To grab it use DebugView on Windows and standard Console application on Mac. On Windows: start DebugView, start your application, print a label, collect all messages displayed in DebugView. On Mac: open Console application, clear current messages, start your application, print a label, collect all messages displayed. Send all the collected messages to the e-mail address below.

Contact SDK support line

If you have any questions regarding the SDK, e-mail us at [sdkreply at newellco  com]. Please note, this is SDK-only support e-mail. For questions regarding DYMO Label software itself, please contact DYMO tech support

October 7, 2011

DYMO Label Framework JavaScript Library 1.2.4

Filed under: DYMO Label Framework,News,SDK News — Vladimir @ 6:29 am
Tags: , , ,

A new version of DYMO Label Framework JavaScript library is available.

This version adds support for Opera 11.51 on Mac and Windows.

The js script file is available from http://labelwriter.com/software/dls/sdk/js/DYMO.Label.Framework.1.2.4.js.

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

October 5, 2011

Experimental support for QR code and PDF417 barcodes

Filed under: SDK News,Tips — Vladimir @ 3:57 am
Tags: , ,

An experimental support for QR code and PDF417 barcodes has been added in DYMO Label 8.3. You will have to edit a label file manually, because there is no UI support yet. Just create a label in DYMO Label, save it into a file, open a file in your preferred xml editor, locate barcode type element (XPath is like /DieCutLabel/ObjectInfo/BarcodeObject/Type); enter “QRCode” or “Pdf417 ” for the Type inner text. Now you can load this label using DYMO Label Framework JavaScript Library and set the barcode content as for any other barcode type, e.g. by using label.setObjectText() or record.setText(). It will work with other APIs we provide as well.

Here is a sample label contains both barcode types, http://labelwriter.com/software/dls/sdk/samples/QA-and-Pdf417.label

 

<!--?xml version="1.0" encoding="utf-8"?>
<DieCutLabel Version="8.0" Units="twips">
    <PaperOrientation>Landscape</PaperOrientation>
    <Id>Address</Id>
    <PaperName>30252 Address</PaperName>
    <DrawCommands>
        <RoundRectangle X="0" Y="0" Width="1581" Height="5040" Rx="270" Ry="270" />
    </DrawCommands>
    <ObjectInfo>
        <BarcodeObject>
            <Name>QRBarcode</Name>
            <ForeColor Alpha="255" Red="0" Green="0" Blue="0" />
            <BackColor Alpha="0" Red="255" Green="255" Blue="255" />
            <LinkedObjectName></LinkedObjectName>
            <Rotation>Rotation0</Rotation>
            <IsMirrored>False</IsMirrored>
            <IsVariable>False</IsVariable>
            <Text>1234567890</Text>
            <Type>QRCode</Type>
            <Size>Large</Size>
            <TextPosition>None</TextPosition>
            <TextFont Family="Arial" Size="8" Bold="False" Italic="False" Underline="False" Strikeout="False" />
            <CheckSumFont Family="Arial" Size="8" Bold="False" Italic="False" Underline="False" Strikeout="False" />
            <TextEmbedding>None</TextEmbedding>
            <ECLevel>0</ECLevel>
            <HorizontalAlignment>Center</HorizontalAlignment>
            <QuietZonesPadding Left="0" Top="0" Right="0" Bottom="0" />
        </BarcodeObject>
        <Bounds X="331" Y="57.9999999999999" Width="1434.3307302029" Height="1435" />
    </ObjectInfo>
    <ObjectInfo>
        <BarcodeObject>
            <Name>Pdf417Barcode</Name>
            <ForeColor Alpha="255" Red="0" Green="0" Blue="0" />
            <BackColor Alpha="0" Red="255" Green="255" Blue="255" />
            <LinkedObjectName></LinkedObjectName>
            <Rotation>Rotation0</Rotation>
            <IsMirrored>False</IsMirrored>
            <IsVariable>False</IsVariable>
            <Text>1234567890</Text>
            <Type>Pdf417</Type>
            <Size>Large</Size>
            <TextPosition>None</TextPosition>
            <TextFont Family="Arial" Size="8" Bold="False" Italic="False" Underline="False" Strikeout="False" />
            <CheckSumFont Family="Arial" Size="8" Bold="False" Italic="False" Underline="False" Strikeout="False" />
            <TextEmbedding>None</TextEmbedding>
            <ECLevel>0</ECLevel>
            <HorizontalAlignment>Center</HorizontalAlignment>
            <QuietZonesPadding Left="0" Top="0" Right="0" Bottom="0" />
        </BarcodeObject>
        <Bounds X="2086" Y="57.9999999999999" Width="2867" Height="1435" />
    </ObjectInfo>
</DieCutLabel>

October 4, 2011

DYMO Label Framework JavaScript Library: Advanced Text Formatting

Filed under: DYMO Label Framework,SDK Samples — Vladimir @ 5:37 am
Tags: , , , ,

There are two ways of providing dynamic text data to be printed on your labels. In both cases the text can be “styled”, so different parts of the text will use different fonts, sizes and/or styles.

The first way covers most use cases for text formatting needs, it is simple, and, of cause, has some limitations. The limitation is that it supports line-by-line formatting only. So, each line can have its own formatting, but all characters in the same line will use the same formatting. If this is OK for your application, then here are the steps needed to utilize this method. first, you have to design you label layout/template. The easiest way to design a label is by using DYMO Label software. While designing, type a sample data for a label object, and apply some formatting, on line by line basis, e.g. make the first line bold, save the file, and put it on your server. 

image

Those are manual steps, now we will need some JavaScript. Load the label by using openLabelXml. Now you can set your real data by using setLabelText or, if you need to print multiple labels, by using a LabelSet. You pass a plain string without any formatting to the setLabelText method, and the library will apply line-by-line formatting for you based on the sample data in the label file. For example, if you call setLabelText(‘Will E. Coyote\nACME Birding\n2200 Desert Meadows Way\nLas Vegas, NV 89122’), the output will be like that:

image

The second way to format the text is by using so called “Text Markup” feature. It is some what more complex than the first formatting method, but in return you have the full control over the font attributes and can do character-by-character formatting. First, you design your label as described above, but you don’t have to specify any sample data. Next you have to construct a “text markup”.  A text markup is an xml string contains tags controlling font attributes, plus plain text data. The Supported tags are ones similar to HTML tags: <font>, <b>, <i>, <u>, <s>, <br>. Full xml-schema definition is available here. After you have the markup text, you can print it by using a LabelSet and setTextMarkup method.

var labelSet = new dymo.label.framework.LabelSetBuilder();
var record = labelSet.addRecord();

var textMarkup = '...';
record.setTextMarkup('Text', textMarkup);
label.print('DYMO LabelWriter 450', null, labelSet.toString());

Here is an example demonstrates different formatting capabilities: http://labelwriter.com/software/dls/sdk/samples/js/TextMarkup/TextMarkup.html, and the corresponded JavaScript http://labelwriter.com/software/dls/sdk/samples/js/TextMarkup/TextMarkup.js. Type anything into the “Text to Print” text box and click on any button below. The output should correspond to the button’s caption. The corresponded text markup will be copied to the “Text Markup” text box, so you can examine it without going into JavaScript debugger. Also, you can just type any text markup in the box and print it by clicking on “Print text markup” button. Just make sure it is a correct xml and correct markup. If it is not, a runtime error/exception is thrown.

September 29, 2011

DYMO SDK Extension Update for Firefox 7.0

Filed under: News,SDK News — Vladimir @ 4:32 am
Tags:

The Firefox extension for DYMO SDK has been updated to support Firefox 7. The extension is available here. The FAQ article is here.

Please note that the Firefox extension is deprecated. No new development will be done for the extension. For new projects please use the Javascript library from the DYMO Label Framework. We encourage developers to switch to the new API even for current projects. Here are some benefits the new DYMO Label Framework API provides in comparison to the extension:

  • DYMO Label Framework API provides a cross-browser and cross-platform pure Javascript API. The same API supports all major browsers on Windows and Mac. The Firefox extension API can be used only in Firefox on Windows.
  • All necessary Framework installation is done by the DYMO Label software installer.  By contrast the Firefox extension must be downloaded by customers separately and installed manually.
  • DYMO Label Framework supports and will support all the DYMO printers. New printers will not be supported by the extension.

Sorry, but no auto-update functionality in this version. We will add it later and then re-release the extension.

 

September 16, 2011

DYMO Label Framework JavaScript Library 1.2.3

Filed under: DYMO Label Framework,News,SDK News — Vladimir @ 1:40 am
Tags: , , ,

A new version of DYMO Label Framework JavaScript library is available.

This version improves detection of supported browsers, or more precise unsupported ones. There is a known problem with Safari 5.1 running in 32-bit mode on both Mac OS X 10.6 and 10.7. Before version 1.2.3 the library did not detect this problem. Now, the call to dymo.label.framework.checkEnvironment() will return an error.

The js script file is available from http://labelwriter.com/software/dls/sdk/js/DYMO.Label.Framework.1.2.3.js.

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

September 7, 2011

DYMO Label Framework JavaScript Library 1.2.2

Filed under: DYMO Label Framework,News,SDK News — Vladimir @ 5:00 am
Tags: ,

A new version of DYMO Label Framework JavaScript library is available.

Thanks to our friends at lambslist.com a subtle bug in Mac version of DYMO Label software has been discovered (and fixed). The problem manifests itself at print time, when the label data is printed using the default font instead of one specified in the label file. The fix for DYMO Label software is scheduled for the next release, 8.4. In the meantime the js script library has been updated to include a workaround for the problem.

The js script file is available from http://labelwriter.com/software/dls/sdk/js/DYMO.Label.Framework.1.2.2.js.

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

August 20, 2011

Lessons Learned from labelwriter.com Shutdown

Filed under: SDK News,Tips,Uncategorized — Vladimir @ 6:21 am

Recently the site we use to host most of our SDK samples, documentation, installers, etc was in a coma for almost a day. Fortunately,  it survived. Unfortunately, this caused a lot of trouble for our users, for which we are sorry.

Some lessons learned from this unpleasant expirence:

  1. Don’t host a front-end and a back-end on the same site. By front-end I mean a standard web-site, by back-end – a file storage, developer’s documentation, etc. Some day a manager who knows nothing about the back-end will come and decide the web-site should rest in peace. IT will break everything in a flash, but its not that easy to restore.
  2. Some developers link directly to js library from labelwriter.com. Though we will try not do make the same mistake again, the site is not really designed to be used in mission critical applications. So, it would be a good idea to host the library on your own sites, where you have more control.
  3. Some developers link to the “latest” version of the library from their pages. This latest file is not intended to be used on production servers. The file serves two main purposes. First, at DYMO we link to it from our samples; because we have a lot of them, for us it would be painful to update all of the samples with any new release of the library. Second, it might be linked from a page on a staging server or a test machine; so, a new, latest, version can be easily tested with your application. On production servers, it is better to link to a specific version of the library, that your application was tested with. At the time of writing the latest version is 1.2.

August 19, 2011

labelwriter.com is down

Filed under: Uncategorized — Vladimir @ 10:49 pm

We host a lot of samples and documentation on labelwriter.com. Unfortunately, the site is down at the moment and most of the samples are not accessible.   We are working on resolving the issue. Thanks for understanding.

Update: The latest version of DYMO Label Framework JavaScript library can be found here.

Update 2: the site is running now.

« Previous PageNext Page »

Theme: Customized Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

Join 73 other followers