You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found after some testing with the latest version of the Dymo Connect Service (installed with DCDSetup1.4.4.1.exe) that you need to call getPrinters() prior to attempting to print. I was using VisitorManagement javascript sample in the DYMO DCD-SDK-Sample-master javascript and found that it works using the dymo.connect.framework.full.js. I did some analyzing of the code and found that when the DOM loads it calls the dymo.label.framework.getPrintersAsync(). I incorporated the call to getPrinters(), but in doing so I also modified it to be an async call. I've included the minimal changes below. I hope this helps someone else.
async getPrinters() {
if (typeof process !== 'undefined' && process.env) {
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; // TODO: Bundle the certificates.
}
await fetcher(`${this.apiUrl}/GetPrinters`)
.then((response) => response.text());
}
The text was updated successfully, but these errors were encountered:
I found after some testing with the latest version of the Dymo Connect Service (installed with DCDSetup1.4.4.1.exe) that you need to call getPrinters() prior to attempting to print. I was using VisitorManagement javascript sample in the DYMO DCD-SDK-Sample-master javascript and found that it works using the dymo.connect.framework.full.js. I did some analyzing of the code and found that when the DOM loads it calls the dymo.label.framework.getPrintersAsync(). I incorporated the call to getPrinters(), but in doing so I also modified it to be an async call. I've included the minimal changes below. I hope this helps someone else.
The text was updated successfully, but these errors were encountered: