dymosoftware / dymo-connect-framework

DYMO Connect Framework for Javascript.
Other
88 stars 54 forks source link

Cannot render label dymo connect #8

Closed SantiOrteal closed 3 years ago

SantiOrteal commented 3 years ago

Hi there!, im using dymo framework for first time, im using the dymo connect software to create the label, the problem here its is i cannot use the method render or print of the ILabel object that i get of using openLabelXml, i check is a valid label, and i get true, this is the error i get: error dymo

I check the label and it opens in the dymo connect, i dont think the label has a problem, so i decide to use the renderLabel method, and it get render, but when i set text on a textObject, it change it, but when i render again, the label it have the same text before the set, and when i try to print it the same error pops.

I try with a label of the other software (the dls version) and it works fine with ILabel methods, so i dont know if im doing it wrong, or is it an error on the framework. Thank you!

yasnaderi commented 3 years ago

Hi there!, im using dymo framework for first time, im using the dymo connect software to create the label, the problem here its is i cannot use the method render or print of the ILabel object that i get of using openLabelXml, i check is a valid label, and i get true, this is the error i get: error dymo

I check the label and it opens in the dymo connect, i dont think the label has a problem, so i decide to use the renderLabel method, and it get render, but when i set text on a textObject, it change it, but when i render again, the label it have the same text before the set, and when i try to print it the same error pops.

I try with a label of the other software (the dls version) and it works fine with ILabel methods, so i dont know if im doing it wrong, or is it an error on the framework. Thank you!

I think the JS library is not compatible with the 1.x version of demo connect.

dymosoftware commented 3 years ago

Hi @Malkai99 and @yasnaderi, DYMO.Connect.Framework needs DYMO Connect v1.2 at least to be able to open, update, and print labels created from DYMO Connect. It has the same functions of the old DYMO.Label.Framework; therefore, it works with DLS installed as well with an exception. See the follow scenarios:

DYMO.Connect.Framework works

Opening a label created from DLS with DLS Service running. Opening a label created from DLS with DCD Service running. Opening a label created from DCD with DCD Service running.

DYMO.Connect.Framework does not work

Opening a label created from DCD with DLS Service running.

Could you attach your label file? To validate the error with our team.

yasnaderi commented 3 years ago

Thanks @dymosoftware for the answer.

My printer is DYMO Label Writer 450 Turbo

You can find the example in here

dymosoftware commented 3 years ago

Somehow the HTTP request from web browser was changing the end tag of the Color element. Adding a space between start and end tag will fix the issue. <Color A="1" R="0" G="0" B="0">[HERE ADD A SPACE]</Color>