dymosoftware / dymo-connect-framework

DYMO Connect Framework for Javascript.
Other
91 stars 53 forks source link

DYMO Connect (Version 1.4.3.103) - Issue with QR Code Data Nodes During Label Printing #72

Open cybrtck opened 1 year ago

cybrtck commented 1 year ago

I am facing an issue when trying to print a label containing only a single QR code using DYMO Connect (Version 1.4.3.103).

In my process, I am successfully able to load the XML file, execute the 'setObjectText' function and confirm the anticipated modifications in the XML file before initiating the print command. However, it seems that DYMO Connect is utilizing a different data node for the QR code value than what is expected.

To elaborate, there are two distinct data nodes in the XML file, namely 'Data/DataString' and 'TextDataHolder/Value' (see label XML snippet below. Attempting to eliminate either of these nodes results in an XML parsing error.

The 'setObjectText' function modifies the 'Data/DataString' node as predicted, but the final printed QR code value appears to depend on the 'TextDataHolder/Value' node. This observation is confirmed by manually changing the 'TextDataHolder/Value' node and observing the resulting print.

`

QRCode
      <Data>
        <DataString>{QRCODE1}</DataString>
      </Data>
      <HorizontalAlignment>Center</HorizontalAlignment>
      <VerticalAlignment>Middle</VerticalAlignment>
      <Size>AutoFit</Size>
      <EQRCodeType>QRCodeText</EQRCodeType>
      <TextDataHolder>
        <Value>{QRCODE2}</Value>
      </TextDataHolder>

`

Note: Printing to a LabelWriter 550