DYMO Label Framework JavaScript Library Samples: Preview and Print Label

This sample shows how new DYMO Label Connect JavaScript Library can be used to display a label preview as well as loading label from a local file and print it. This sample demonsrates:
  • Using dymo.label.framework.openLabelXml() and openLabelFile() to load label definition for further manipulation
  • label.getAddressText() and setAddressText() to read and set address information on a Address object
  • label.render() to generate label preview
  • dymo.label.framework.getPrinters() to get information about installed DYMO printers
  • label.print() to print the label

Note: the preview does not work in Internet Explorer 6 and Internet Explorer 7. We encourage to use Google Chrome.

Some browsers are not able to return the full path to try to open file, in this case, label will be loaded from predetermined XML.


label preview