load("admin"); if (!$user->admin) accessforbidden(); llxHeader(); print_fiche_titre($langs->trans("DYMO Test Label"),'','setup'); ?>
This sample shows how new DYMO Label Framework JavaScript Library can be used to display a WYSIWYG 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.

label preview