Giter VIP home page Giter VIP logo

Comments (11)

stormframe avatar stormframe commented on July 26, 2024 7

Hi,
i had the same Problem.
Labels created with Dymo 1.3.2 are getting this fault.

FIX for the Moment:
Create the Label with Dymo 8.x.x (Latest Version), This Label can be printed with the Framework

from dymo-connect-framework.

dymosoftware avatar dymosoftware commented on July 26, 2024 3

Yes, a fix for this issue will be available on further updates. We will let you know once this issue is fixed. Thanks a lot!

  • DYMO Team.

from dymo-connect-framework.

lesteb avatar lesteb commented on July 26, 2024 2

@dymosoftware Can you please provide an estimate as to when this issue will be resolved?

from dymo-connect-framework.

dagreatbrendino avatar dagreatbrendino commented on July 26, 2024 2

@chibeepatag You are a savior! After banging my head trying to figure out where this ghost '' closing tag saved the day. One note, I had to use the function they used because it doesn't seem replace all works with the node unless it's passed through goog.dom.xml.serialze(node)

dymo.xml.serialize = function(node) {
     function fix (node) {
        return node.replaceAll(/<(color) ([^\/>]*?) *\/?> *(<\/\1>)?/ig, "<$1 $2> </$1>"); 
     }	

    return fix(goog.dom.xml.serialize(node));
}

@dymosoftware please step up your game, this has been an issue since 2020!

from dymo-connect-framework.

jeroenv avatar jeroenv commented on July 26, 2024 1

Hi @jeroenv, please add the closure tag to the Color element.
Replace <Color A="1" R="0" G="0" B="0"/> by <Color A="1" R="0" G="0" B="0"> </Color>.

See the following link #8.

I can confirm that adding a space between the opening and closing tag of the Color element fixes the issue.

@dymosoftware is this something that will be fixed in the DYMO Connect software? Because I just created the label with the software and didn't change the XML after uploading it to print it with the DCD service through web.

from dymo-connect-framework.

timint avatar timint commented on July 26, 2024 1

This issue has been confirmed on Jan 28 2022 still being a problem.
The ticket should be reopened until a proper commit fixes the issue.

from dymo-connect-framework.

timint avatar timint commented on July 26, 2024 1

This is not a fix
image

<Color .../> or <Color ...></Color> is perfectly valid XML.

/<(color) ([^\/>]*?) *\/?> *(<\/\1>)?/ig and <$1 $2> <$1> might be a better regex. But it's just bypassing the bug rather than fixing it. The real bug should reside in your XML parser.

And you don't need to define a function to rewrite a string:

dymo.xml.serialize = function(node) {
    node = node.replaceAll(/<(color) ([^\/>]*?) *\/?> *(<\/\1>)?/ig, "<$1 $2> </$1>"); // Bypass parser bug by giving the element a blank space value
    return goog.dom.xml.serialize(node);
}

from dymo-connect-framework.

chibeepatag avatar chibeepatag commented on July 26, 2024 1

This is not a fix image

<Color .../> or <Color ...></Color> is perfectly valid XML.

/<(color) ([^\/>]*?) *\/?> *(<\/\1>)?/ig and <$1 $2> <$1> might be a better regex. But it's just bypassing the bug rather than fixing it. The real bug should reside in your XML parser.

And you don't need to define a function to rewrite a string:

dymo.xml.serialize = function(node) {
    node = node.replaceAll(/<(color) ([^\/>]*?) *\/?> *(<\/\1>)?/ig, "<$1 $2> </$1>"); // Bypass parser bug by giving the element a blank space value
    return goog.dom.xml.serialize(node);
}

This worked for me. @dymosoftware when will you release this fix?

from dymo-connect-framework.

dymosoftware avatar dymosoftware commented on July 26, 2024

Hi @jeroenv, please add the closure tag to the Color element.
Replace <Color A="1" R="0" G="0" B="0"/> by <Color A="1" R="0" G="0" B="0"> </Color>.

See the following link #8.

from dymo-connect-framework.

hunkydoryrepair avatar hunkydoryrepair commented on July 26, 2024

This is certainly a problem since Dymo Connect editor saves the label without a space...Hard to imagine this is a difficult fix.

from dymo-connect-framework.

hunkydoryrepair avatar hunkydoryrepair commented on July 26, 2024

This is not a fix

yeah, that's a hack. But potentially better because we can control what .js is loaded. Harder to control which version of Dymo Connect users are running. But should be FIXED and the workaround kept in for backward compatibility.

from dymo-connect-framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.