dymosoftware / dymo-connect-framework

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

DYMO Connect SDK 1.4.3.10-beta: Referencing TextObject names #53

Closed SRA-DE closed 2 years ago

SRA-DE commented 2 years ago

A "*.dymo" label is designed with 12 text objects. These text objects are named with "FolderText" and "Folder", "OrderText" and "Order", "MaterialText" and "Material", "OffsetText" and "Offset", "AngleText" and "Angle", "DateText" and "Date".

The "...Text" objects are used to print the description in different languages for international customers. The other objects will be filled with data content.

The text object replacement is coded as: DymoLabelField = Program.DM.DYMOConnectLabel.GetLabelObject("FolderText"); if (DymoLabelField != null) Program.DM.DYMOConnectLabel.UpdateLabelObject(DymoLabelField, "FolderText1"); DymoLabelField = Program.DM.DYMOConnectLabel.GetLabelObject("Folder"); if (DymoLabelField != null) Program.DM.DYMOConnectLabel.UpdateLabelObject(DymoLabelField, "Folder1"); DymoLabelField = Program.DM.DYMOConnectLabel.GetLabelObject("JobText"); if (DymoLabelField != null) Program.DM.DYMOConnectLabel.UpdateLabelObject(DymoLabelField, "JobText1"); DymoLabelField = Program.DM.DYMOConnectLabel.GetLabelObject("Job"); if (DymoLabelField != null) Program.DM.DYMOConnectLabel.UpdateLabelObject(DymoLabelField, "Job1"); ...

The issue: If searching for text object "Folder", the SDK is referencing and replacing the "FolderText" object. If searching for text object "Job", the SDK is referencing and replacing the "JobText" object. ...

Find a sample label "eCAB0A6.DYMO" attached: eCAB0A6_DYMO.zip

Thanks and regards.

dymosoftware commented 2 years ago

DYMO SDK provide the first label object from IEnumerableCollection for the performance. Can you rename Folder to something else like "FolderName"?

Thank you,

SRA-DE commented 2 years ago

That was my workaround: Using "FolderText" and "FolderContent" instead of "Folder".

But it would be nice, to have exact seach results eventually. This will reduce questions of our customers ;-)

Thanks.

dymosoftware commented 2 years ago

I will add this improvement into back log and bring it up to our team. Thank you.

SRA-DE commented 2 years ago

Great support.

Thanks a lot!

dymosoftware commented 2 years ago

I added log and brought it our team and everyone liked to provide the fix. Thank you.

dymosoftware commented 2 years ago

I will close this issue because we pushed a code fix for this defect in the next release. Thank you.