DYMO.Connect.Framework is a new JavaScript SDK based on DYMO.Label.Framework introducing compatibility with DYMO Connect Software.
These instructions will help you to understand how DYMO.Connect.Framework works.
DYMO Connect Software installed
-
DYMO.Connect.Framework has compatibility with DYMO Label Software and DYMO Connect Software.
Samples
Include the framework into your project
- https://github.com/dymosoftware/dymo-connect-framework/blob/master/dymo.connect.framework.js
- https://s3.amazonaws.com/download.dymo.com/dymo/Software/JavaScript/dymo.connect.framework.js
dymo.connect.framework includes functions from the previous dymo.label.framework
These are the main functions to get start
-
- Initialize
dymo.label.framework.init() //Initialize DYMO Label Framework
dymo.label.framework.checkEnvironment() // Validate if the environment meets the requirements
- Load label
dymo.label.framework.openLabelFile(fileName) //Load label from file name and return label instance
- Validate label
dymo.label.framework.openLabelXml(labelXml) //Load label from XML content and return label instance
- Validate label instance (introduced in dymo.connect.framework)
label.isValidLabel() //Validate if the current content is a valid label based on the current service installed label.isDCDLabel() //Validate if the current content is a valid DYMO Connect label based on DYMO Connect service label.isDLSLabel() //Validate if the current content is a valid DYMO Label Software label based on DYMO Label Software service
- Get printers
dymo.label.framework.getPrinters() //Get list of DYMO printers installed
dymo.label.framework.printLabel(printerName, printParamsXml, labelXml, labelSetXml) //Print label
- Get preview
dymo.label.framework.renderLabel(labelXml, renderParamsXml, printerName) //Get label preview image of the label
Opening a label file previously created from DYMO Label Software, with DYMO Connect Software installed, it will convert the structure of DLS label into DYMO Connect label. Therefore, isDCDLabel function will return always true after label file has been open, when DYMO Connect is running.
setTextMarkup function is not supported for DYMO Connect labels.
DYMO Team www.dymo.com