dsandor / dymojs

A pure javascript library for printing labels on a Dymo Labelwriter printer from the browser or from nodejs.
128 stars 30 forks source link

Printing an image #8

Open salanki opened 5 years ago

salanki commented 5 years ago

Whenever trying to print an image with data, I get an error from the DLS

"[0] The component cannot be found. (Exception from HRESULT: 0x88982F50) [1] No imaging component suitable to complete this operation was found. [2] There is an error in XML document (49, 46). [3] There is an error in XML document (49, 46). [4] There is an error in XML document (49, 46). [5] Unable to load label template

The image is correctly encoded Base64 PNG, I just took the data from a working label XML.

<Image>iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0AQAAAADjreInAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGVSURBVHja7doxkoMwDIVhMyko4Qa5ao7KESgpGLS71sor2yRbZCaJPf8rmED4XCKQHOSprOEW6gz2925XRpHt5MYw4/F4PP59XrIc0RdSj1N+54LH4/H41r3dPZjXFKtMPy/8v7ni8Xg8vkev8hJX2fB4PB7fjNeHPx6Px+M79y6pfngs5n3weDwe37avkvye9//r4PF4PL5VL3eTSsiDrHg8Ho9/k7+VT/7DfhfNnzE2f7QFpM2f7yMej8fjO/CDVYUj9z6pBbTE0xmPx+PxTXv5GwEHN/8NVf9nctjVDzwej8e/wRse3OYdcUukKPZbePB4PB7fqlccjyqL/o9Y/Siy4PF4PL51f5b9zGvlmAzHK3g8Ho9v09/fv6klZHMtJHGrhNP5MR6Px+Nf6CWLbwHt+Zt/2r+TMuPxeDy+aW/naQTgO/9j/gmQRsDl/ACPx+PxvXj9fqijzZ+4HB6Px+M/0Af38N/y/TtXPB6Px3fgXR7XjwmPx+Px3fgq6i/W/y+aP2vEy7/zYzwej8d/spdnIusXTAG4EoXjQLYAAAAASUVORK5CYII=</Image>

Any ideas?