dymosoftware / dcd-sdk-sample Goto Github PK
View Code? Open in Web Editor NEWDYMO Connect SDK Samples
License: Other
DYMO Connect SDK Samples
License: Other
Sample WPF Application using DYMO Connect SDK works fine in Visual Studio but has issues when published using ClickOnce.
once published DymoPrinter.Instance.GetPrinters() does not return any printers, despite them being available on the client machine and accessible from Dymo Connect / Dymo Label.
Deployed Sample app also crashes on label load, claiming element DieCutLabel does not exist in template (it does), though works fine in IDE.
Hello,
Our application is currently hosted on Azure App Services and then we are using dymo js library. We are facing challenges with CORS issues. May I know if anyone has figured out a way around it. I appreciate it! Thank you!
I am trying to use version 1.4.2.22 in a net 5.0 project in vs 2019. The are no errors in the build but a file not found exception occurs when trying to init the package. Everything works when the project targets a framework version of .net. I created to two small solutions to demonstrate the problem.
https://github.com/owentlarkin/DYMOTest471 works.
https://github.com/owentlarkin/DYMOTest50 gets an exception.
Turn off the "prefer 32-bit" mode in project propeties, compile and run the sample project (DCD-SDK-Sample) in 64x mode. The example will give an error in the SKIA library at runtime.
Maybe the Skia library version 1.68 is too old and should be updated to the latest version?
The first step is to encode the utf-8 characters:
this might be a fix for the 'Range out of order in character class'
(goog.i18n.bidi.ltrChars_ = 'A-Za-zÀ-ÖØ-öø-ʸ̀-Ö�à €-῿‎Ⰰ-﬜︀-﹯﻽-ï¿¿'),
(goog.i18n.bidi.rtlChars_ = '֑-ۯۺ-߿��-﷿ﹰ-ﻼ'),
(goog.i18n.bidi.ltrChars_='\x41\x2D\x5A\x61\x2D\x7A\xC3\x83\xE2\x82\xAC\x2D\xC3\x83\xE2\x80\x93\xC3\x83\xCB\x9C\x2D\xC3\x83\xC2\xB6\xC3\x83\xC2\xB8\x2D\xC3\x8A\xC2\xB8\xC3\x8C\xE2\x82\xAC\x2D\xC3\x96\xC2\x90\xC3\xA0\x20\xE2\x82\xAC\x2D\xC3\xA1\xC2\xBF\xC2\xBF\xC3\xA2\xE2\x82\xAC\xC5\xBD\xC3\xA2\xC2\xB0\xE2\x82\xAC\x2D\xC3\xAF\xC2\xAC\xC5\x93\xC3\xAF\xC2\xB8\xE2\x82\xAC\x2D\xC3\xAF\xC2\xB9\xC2\xAF\xC3\xAF\xC2\xBB\xC2\xBD\x2D\xC3\xAF\xC2\xBF\xC2\xBF'),
(goog.i18n.bidi.rtlChars_='\xC3\x96\xE2\x80\x98\x2D\xC3\x9B\xC2\xAF\xC3\x9B\xC2\xBA\x2D\xC3\x9F\xC2\xBF\xC3\xA2\xE2\x82\xAC\xC2\x8F\xC3\xAF\xC2\xAC\xC2\x9D\x2D\xC3\xAF\xC2\xB7\xC2\xBF\xC3\xAF\xC2\xB9\xC2\xB0\x2D\xC3\xAF\xC2\xBB\xC2\xBC'),
Then I got this:
Cannot set property 'Error' of undefined
>> (goog.debug.Error = function (e) {
if (Error.captureStackTrace)
Error.captureStackTrace(this, goog.debug.Error);
else {
can you take a look?
Hi
While loading a *.dymo label file I got the following exception:
An unhandled exception of type 'System.Collections.Generic.KeyNotFoundException' occurred in System.Private.CoreLib.dll
The given key 'DYMO.LabelAPI.Interfaces.IDYMOBrush' was not present in the dictionary.
IDymoLabel l = DymoLabel.Instance;
l.LoadLabelFromFilePath("C:\ ....\myLabel.dymo");
.NET CORE 6 project (C#)
DYMO.Connect.SDK 1.4.3.37
SkaiSharp 1.68.0
*.dymo label file was created with DYMO Connect 1.4.3.131
Thanks.
I would like to use the SDK from dontet core 3.1 WPF application. I downloaded the sample for dotnet 4.x and it works. But when I create a dotnet core 3.1 project I get the error message:
Could not load file or assembly 'DYMO.CrossPlatform.Common, Version=1.3.1.160, Culture=neutral, PublicKeyToken=null'. File not found.
The file exists and information of file is 1.3.1.160
We're using the JavaScript SDK to print a custom label from our web application to a Dymo LabelWriter Wireless printer. This works as expected from a desktop browser (Windows and MacOS) but we're unable to print from iOS (iPad). Is this possible using the JavaScript SDK?
Thanks,
Matt
Issue:
Note:
Is there any other web service that I need to be running for the new 550 to be detected by the JS code? Any help is greatly appreciated.
If you clone this solution, restore packages, change the platform target to x64 and attempt to open any dymo label file you will get an unhandled exception.
Unhandled Exception: DYMO.CrossPlatform.Common.DYMOSerializationException: Invalid label file: The 'DieCutLabel' element is not declared.
at DYMO.LabelAPI.LabelHelper.Settings_ValidationEventHandler(Object sender, ValidationEventArgs e)
at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(String code, String arg)
at System.Xml.Schema.XmlSchemaValidator.ValidateElement(String localName, String namespaceUri, XmlSchemaInfo schemaInfo, String xsiType, String xsiNil, String xsiSchemaLocation, String xsiNoNamespaceSchemaLocation)
at System.Xml.XsdValidatingReader.ProcessElementEvent()
at System.Xml.XsdValidatingReader.Read()
at System.Xml.XmlReader.MoveToContent()
at DYMO.LabelAPI.DYMOLabel`1.Deserialize(XmlReader reader)
at DYMO.CrossPlatform.Common.Helpers.SerializationHelper.Deserialize[T](XmlReader reader)
at DYMO.LabelAPI.LabelHelper.ReadAndOpenLabel(XmlReader reader)
at DYMO.LabelAPI.LabelHelper.OpenLabel(String filename)
at DymoSDK.Implementations.DymoLabel.LoadLabelFromFilePath(String filePath)
at WPFSDKSample.ViewModels.MainViewModel.OpenFileAction()
I need to print Dymo labels from a 64-bit Windows app. Is there a way for me to do that with DYMO Connect SDK?
I have a problem when using Dymo, previously it was working on MacBook chrome mine and my team, and it's suddenly not working after chrome update. When we try to getPrinters (dymo.label.framework.getPrinters()), it's pending on the network when we hit StatusConnected (https://127.0.0.1:xxxx/DYMO/DLS/Printing/StatusConnected), but it's working on another browser like safari and firefox and only happen on MacBook, it's working on windows chrome.
is this related to this chrome update issue? https://wicg.github.io/private-network-access
is it possible because the chrome preflight sends Access-Control-Request-Private-Network but dymo does not return Access-Control-Allow-Private-Network?
We use Dymo label 8.7.5, 8.7.3 & javascript SDK
Hi,
When I right click / diagnose the web service in Edge (v97), I get "None of the ports were configured to use SSL certificate." This also happens when I paste the URL into Chrome. I looked thru the 4 postings on this page mentioning this error and none of these help or apply.
This is Windows 10, v8.7.4.48936 DLS, v3 DLFW. The service is running on port 41951 as the framework is found in IE 11, but not in Edge or Chrome. I have uninstalled/re-installed more than once, verified the cert is trusted, and rebooted the PC more than once. We have many installations of this, but this particular one isn't working for us.
When trace mode is on in the browser development tools, I see that checkLegacyPlugins in IE 11 mentions "ActiveXObject", and in Edge "non-IE". IE 11 returns isFrameworkInstalled=true, and Edge isFrameworkInstalled=False. I only have the minimized javascript so there is only so far I could go with debugging code in the browser.
Any ideas ?
Thanks !
Hi, the update done to DCD and DLS8 solved the white label issue when printing thru the Dymo UI on both apps and also when using the Interop.Dymo and the Dymo.Label.Framework SDK but it did not solve the issue when using the DymoSDK, you can test it using the sample project in C#
Do we need to wait for another update? Thanks
[JS] I wonder if you are planning to make an npm package of the library and provide typescript type definitions to it? In 2020, it feels timely, and would greatly improve developer experience to be able to use IntelliShell on dymo methods, and be able to check type defs without having to browse through the examples. Plus it would provide compile-type error checking.
Running the PreviewAndPrintLabel sample code in github, forcing the load of the sample .dymo or .label file using openLabelXml
results in the below exception from https://127.0.0.1:41951/DYMO/DLS/Printing/RenderLabel
I'm using Dymo Connect 8.7.3
Here's the full error. See the sample application to repro issue.
VM172:1 POST https://127.0.0.1:41951/DYMO/DLS/Printing/RenderLabel 500
(anonymous) @ VM172:1
ajaxSync @ dymo.connect.framework.js:2
invokeWsCommand @ dymo.connect.framework.js:2
DlsWebService.renderLabel @ dymo.connect.framework.js:2
renderLabel @ dymo.connect.framework.js:2
dymo.label.framework.renderLabel @ dymo.connect.framework.js:2
dymo.label.framework.Label.render @ dymo.connect.framework.js:2
updatePreview @ PreviewAndPrintLabel.js:46
(anonymous) @ PreviewAndPrintLabel.js:114
c @ jquery.min.js:2
fireWith @ jquery.min.js:2
l @ jquery.min.js:2
(anonymous) @ jquery.min.js:2
load (async)
send @ jquery.min.js:2
ajax @ jquery.min.js:2
S.<computed> @ jquery.min.js:2
labelFile.onchange @ PreviewAndPrintLabel.js:103
dymo.connect.framework.js:2 Uncaught Error: {"message"
{"message":"An error has occurred.","exceptionMessage":"ReadElementContentAs() methods cannot be called on an element that has child elements. Line 3, position 6.","exceptionType":"System.Xml.XmlException","stackTrace":" at System.Xml.XsdValidatingReader.InternalReadElementContentAsObject(XmlSchemaType& xmlType, Boolean unwrapTypedValue, String& originalString)\r\n at System.Xml.XsdValidatingReader.ReadElementContentAsString()\r\n at DYMO.LabelAPI.DYMOLabel`1.Deserialize(XmlReader reader)\r\n at DYMO.CrossPlatform.Common.Helpers.SerializationHelper.Deserialize[T](XmlReader reader)\r\n at DYMO.LabelAPI.LabelHelper.ReadAndOpenLabel(XmlReader reader)\r\n at DYMO.LabelAPI.LabelHelper.OpenLabel(XmlReader reader)\r\n at DymoSDK.Implementations.DymoLabel.LoadLabelFromXML(String xmlContent)\r\n at DYMOWebApi.Windows.Controllers.DymoDLSSDKController.RenderLabel(FormDataCollection formDataCollection)\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__15.MoveNext()"}:
at ajaxSync (dymo.connect.framework.js:2)
at invokeWsCommand (dymo.connect.framework.js:2)
at DlsWebService.renderLabel (dymo.connect.framework.js:2)
at Object.renderLabel (dymo.connect.framework.js:2)
at Object.dymo.label.framework.renderLabel (dymo.connect.framework.js:2)
at dymo.label.framework.Label.render (dymo.connect.framework.js:2)
at updatePreview (PreviewAndPrintLabel.js:46)
at Object.success (PreviewAndPrintLabel.js:114)
at c (jquery.min.js:2)
at Object.fireWith [as resolveWith] (jquery.min.js:2)
the loaded labels cause isValidLabel
return as false
started working, nvm
We are working on switching to the new SDK to support Dymo Connect.
While doing some tests we found a serious issue with calling print() after opening with OpenLabelXml() method.
If we use XML of a Dymo Connect label then this error occurs on print() :
'Element' is an invalid XmlNodeType. Line 22, position 4.
This is what we already can provide about the issue:
Can this please be checked and fixed? Or can a workaround be provided?
Thanks!
Info:
DCD 1.3.1 on Windows 10 1909 x64
Visual Studio 2019
DYMO.Connect.SDK 1.3.1.115
Installation steps followed from WPFSDKSample
Steps to reproduce:
using DymoSDK.Implementations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PrinterInfo
{
class Program
{
static void Main(string[] args)
{
IEnumerable<DymoSDK.Interfaces.IPrinter> Printers;
Printers = DymoPrinter.Instance.GetPrinters();
foreach (DymoSDK.Interfaces.IPrinter Printer in Printers)
{
Console.WriteLine(Printer.Name + ", IsConnected: " + Printer.IsConnected + ", IsAutoCutSupported: " + Printer.IsAutoCutSupported + ", PrinterType: " + Printer.PrinterType);
}
Environment.Exit(0);
}
}
}
[EDIT]
Even the interface of DCD 1.3.1 now reports the 420P as offline, even though DCD 1.3.1 is completely fine and able to print to it from the interface. Disconnecting, reconnecting, turning off and on the 420P etc has no effect.
[EDIT2]
The DYMO MobileLabeler connected to the same system at the same time has no issues and is properly recognized as online.
Hello developer team,
would it be possible to read out the serial number or a unique identifier of the printer using the JS Framework?
Thus different labels could be inserted in 2 or 3 printers. The correct printer is activated using the serial number.
This software currently doesn't hold a license file or any reference of a license. After having checked on the other repository I added the identical MIT license to this repository.
Please see below the other repository.
https://github.com/dymosoftware/dymo-connect-framework/blob/master/LICENSE.txt
Issue is actually with DYMO Connect, but DYMO Customer Care redirected me here.
DYMO Connect Service is failing to access the private key of the local cert when the application is installed by a domain administrator, but the logged in user is not the same user, or is less privileged. Issue does not present until a system reboot as the service is started under the administrators account following installation, but run as the logged in user on reboot.
This can be observed by using the diagnose command from the task tray.
Editing the permission on for the private key to 'DYMO Root CA (for localhost)' can resolve this. For example by granting read permissions to all domain users.
This instantly fixes the connectivity issue without even needing an application restart
I utilize this functionality for a corporate website, we've purchased and provided clients with hundreds of 450 LabelWriters, and have started adding 550 series LabelWriter for which we also plan to purchase several hundred of. With this we're started migrating from DLS8 to DYMO Connect and this issue burdens both our support staff and our clients, specifically some of our smaller clients with only contract IT staff that sometimes takes days or weeks to follow this simple work around.
Please enhance the installer so that the certificate works for all users of the PC or so that the installation user can select users/groups that can access the certificates private key.
Steps to reproduce
I downloaded the Javascript samples to test and it does not work for me. Using the PreviewAndPrintLabel sample, when I choose the .dymo or .label file in the example directory I just get an error message saying "The file is not a valid label". The file opens just fine in Dymo Connect. This is using Chrome on Windows 10 Pro (everything the latest version).
In the README file there's a link to DYMO Connect JavaScript SDK
, which points to http://ddymojavascriptsdk.com/
, which is NXDOMAIN.
When I try to use the connect framework within an Angular application I get alot of CORS errors and I cannot get the framework to work.
I've included <script charset="UTF-8" src="http://labelwriter.com/software/dls/sdk/js/dymo.connect.framework.js" type="text/javascript"></script> within the index.html and within the component I call the code below:
public ngOnInit(): void {
dymo.label.framework.init();
dymo.label.framework.checkEnvironment();
console.log(dymo.label.framework.getPrinters());
}
See CORS errors below. Is there a way to use a custom http client for the communication? Or any other way to get this to work in an Angular application?
The given dependeny for SkiaSharp in NuGet is: SkiaSharp (= 1.68.0). This is to old (2018) and a lot of bugs have been fixed in the newer SkiaSharp versions. Please update the dependency.
When i load the label i got error:
Invalid label file: Elemento 'DieCutLabel' non dichiarato
I try to change PaperName tag from 11355 Multi-Purpose
to another and it works.
Which API should I use to create a label file to print. I prefer to use CSV file format to print multiple labels at the same time.
Now I have two objects e.g. text and barcode (linear and QR) for testing.
The DymoPrinter.Instance.PrintLabel(...) wont print without calling DymoPrinter.Instance.GetPrinters() at least once.
C# POS Application Integrated with Dymo 450 Label Writer Turbo using SDK,
Found problems printing with a image.
450 Turbo is making weird sound when trying to print 1st label and feeding backwards a bit, if label contain an image.
Without an image on label, it is doing backwards a little bit, but printing is correctly performed on every labels.
Image file size that I used was just 44kb and Dymo file size was 14kb.
Let me know if you have any fix for this.
Printing PDF417 codes from the .NET Sample produces invalid PDF417 codes (both in preview and in actual print result).
Info:
DCD 1.3.1 on Windows 10 1909 x64
Visual Studio 2019
DYMO.Connect.SDK 1.3.1.115
Installation steps followed from WPFSDKSample
Steps to reproduce:
3F21C736502C8A39
)Example of invalid preview of code 3F21C736502C8A39
Example of valid code from interface of DCD1.3.1 of code 3F21C736502C8A39
I initially posted this to the framework repo in error.
I can't get the package working in our Excel VSTO Add-in application.
Visual Studio 2019
DCD 1.3.2.14
Dymo.Connect.SDK 1.3.1.115
To debug it I created a simple application using the Excel VSTO Add-in template, just for this test.
ThisAddin.cs code:
using DymoSDK.Implementations;
namespace DymoTestExcel
{
public partial class ThisAddIn
{
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
var printers = DymoPrinter.Instance.GetPrinters();
}
private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
{
}
#region VSTO generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InternalStartup()
{
this.Startup += new System.EventHandler(ThisAddIn_Startup);
this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
}
#endregion
}
}
No printers are found. Count of printers remains 0.
I also upgraded to the latest beta:
Dymo.Connect.SDK 1.3.1.160-beta
Code was modified to add the init method:
using DymoSDK.Implementations;
namespace DymoTestExcel
{
public partial class ThisAddIn
{
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
DymoSDK.App.Init();
var printers = DymoPrinter.Instance.GetPrinters();
}
private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
{
}
#region VSTO generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InternalStartup()
{
this.Startup += new System.EventHandler(ThisAddIn_Startup);
this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
}
#endregion
}
}
Now an exception is thrown on DymoSDK.App.Init(); :
System.IO.FileNotFoundException
HResult=0x80070002
Message=Could not load file or assembly 'file:///C:\Users\a1018409\AppData\Local\assembly\dl3\3GY0P7VE.C5K\GPQ1DZYA.M4K\0d2e407c\00055c8c_b223d601\x64\PrintingSupportLibrary.dll' or one of its dependencies. The system cannot find the file specified.
Source=<Cannot evaluate the exception source>
StackTrace:
<Cannot evaluate the exception stack trace>
Everything is working fine when using a C# console app, so it must be related somehow to the deployment used by VSTO.
With .NET 6, DymoSDK.App.Init() fails with the following exception:
Could not load file or assembly 'DYMO.LabelAPI, Version=1.4.3.37, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.'
I saw a similar issue here for .net 5. Is .net core going to be supported? Or are we forced to continue to use the old Dymo Label SDK 8? (which does appear to work)
We’re having issue with end users auto-updating Dymo Connect software to latest 1.4.2.82 causing Javascript SDK printer isConnected === false.
However, In Dymo Connect software, the printer shows as Connected.
dymo.label.framework.checkEnvironment();
{
"isBrowserSupported": true,
"isFrameworkInstalled": true,
"isWebServicePresent": true,
"errorDetails": ""
}
dymo.label.framework.getPrinters();
{
"printerType": "LabelWriterPrinter",
"name": "DYMO LabelWriter 450",
"modelName": "DYMO LabelWriter 450",
"isConnected": false,
"isLocal": true,
"printerUri": "",
"originalPrinterName": "",
"isTwinTurbo": false
}
I cannot figure out why isConnected is false?
Thank you
A LabelSet example would be amazing
Hallo, ich habe leider einige Probleme, das NuGet-Packet zu nutzen.
Ich habe ein neues Projekt angelegt und das NuGet-Packet "Dymo.Connect.SDK" heruntergeladen.
Zu aller erst importierte ich DymoSDK.Implementations
.
Hier weiter mein Code:
`
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim dymoSDKLabel As DymoSDK.Implementations.DymoLabel
DymoSDK.App.Init()
Dim SelectedPrinter As String = "DYMO LabelWriter 450"
Dim copies As Integer = 1
Dim barcodeGraphsQuality As Boolean = True
'dymoSDKLabel = New DymoLabel()
dymoSDKLabel = DymoLabel.Instance
dymoSDKLabel.LoadLabelFromFilePath("R:\Produktion\Praktikanten\OFE\test.dymo")
DymoPrinter.Instance.PrintLabel(dymoSDKLabel, SelectedPrinter, copies, barcodeGraphsQuality)
End Sub
`
Ich habe den Punkt dymoSDKLabel = new DymoLabel()
auskommentiert, da ein Überladungsfehler auftritt, weshalb ich
dymoSDKLabel = DymoLabel.Instance
eingebaut habe.
Mein Label enthält eine Textbox, da ich nur einmal Testen wollte, wie alles funktioniert. Erstellt mit der Dymo Connect Software.
Nach dem Button-Klick passiert aber nichts. Ich bekomme keine Fehlermeldung oder sonstiges.
Nur die Nachricht im Ausgabefenster:
Kann mir jemand weiterhelfen oder einfach mal ein Code-Beispiel hochladen?
Meine erzeugten Label mit der Dymo Label Software habe ich mit VB.NET und dem Dymo.Framework immer bearbeitet und gedruckt. Nun wollte ich auch ein neues System umsteigen und kapiere das ganze noch nicht wirklich.
Hi, I'm testing this code PreviewAndPrintLabel.html, I didn't touch it, just run it.
And I can't figure out what I'm doing wrong, is maybe some setting on Dymo side?
(It's used default XML, because it refuse to load XML from file).
I get always space at beginning of second and third line.
If I want four lines of text it get completely mixed address ... I also tried to modify text size to 8 and still same mixing ...
Thank you for your help.
Best regards,
Klemen
We are using labels we designed, and just replacing the objects with values from our DB.
We copied code form the WPF example, but in C# it doesn't seem to work as expected.
At first it did nothing
We added this "GetPrinters()" which we saw on another thread in Issues, which is somehow necessary to the process?
Then it errored out with "Could not load file or assembly SkiaSharp.Views.Desktop..." 1.6.8.0... when we made the DymoPrinter.Instance.PrintLabel() call.
In the end, to make it work, we ended up adding "SKIASharp.Views (v.1.68.0)" via NuGet.
None of this is documented behavior.
Hi all,
We are in the process of moving from the Dymo.Framework to DymoSdk. Most of the driver development is done whereas actually sending the printjob throws an assembly error.
{"Could not load file or assembly 'SkiaSharp.Views.Desktop, Version=1.68.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The system cannot find the file specified.":"SkiaSharp.Views.Desktop, Version=1.68.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"}
The SkiaSharp Nuget package is installed and we are unable to find a reason why it throws an exception.
What do we miss?
var dymoPrinter = DymoPrinter.Instance;
var printer = dymoPrinter.GetPrinters().FirstOrDefault() // Exception:
System.Exception: Error getting printers ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'file:///C:\Users\ehs_yarles\AppData\Local\Temp\Temporary ASP.NET Files\root\70c4f1f6\46e16c38\assembly\dl3\d91fbbb6\001e480d_a1d5d701\x86\PrintingSupportLibrary.dll' or one of its dependencies. The system cannot find the file specified.
at DYMO.CrossPlatform.Common.Windows.Helpers.FileLoader.LoadAssembly(String assemblyName)
at DYMO.LabelAPI.Windows.Printers.SpoolerMonitorGateway..ctor()
at DYMO.LabelAPI.Windows.PrinterDiscovery.WindowsDeviceDiscoveryAgent..ctor()
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at DYMO.CrossPlatform.Common.ServiceLocator.AssemblyCache.ExportedClass.CreateTypeT
at DYMO.CrossPlatform.Common.ServiceLocator.AssemblyCache.<>c__DisplayClass18_01.<CreateMany>b__0() at System.Lazy
1.CreateValue()
at System.Lazy1.LazyInitValue() at System.Lazy
1.get_Value()
at DYMO.LabelAPI.PrinterFactory.RefreshPrinters()
at DymoSDK.Implementations.DymoPrinter.RefreshPrinters()
at DymoSDK.Implementations.DymoPrinter.GetPrinters()
--- End of inner exception stack trace ---
at DymoSDK.Implementations.DymoPrinter.GetPrinters()
at certs.Controllers.PackageController.PrintLabels(List`1 labels, String printerName) in C:\Users\ehs_yarles\Desktop\workspace\certs\certs\Controllers\PackageController.cs:line 110
Why is it looking for the assembly in C:\Users\ehs_yarles\AppData\Local\Temp\Temporary ASP.NET Files\root\70c4f1f6\46e16c38\assembly\dl3\d91fbbb6\001e480d_a1d5d701\x86\PrintingSupportLibrary.dll ???
Assembly is here:
C:\Users\ehs_yarles.nuget\packages\dymo.connect.sdk\1.4.2.35\Build\DYMOLib\x86\PrintingSupportLibrary.dll, as expected
The LabelManager 420P has a cutter, but is manually operated. It therefore does not qualify for the IsAutoCutSupported flag, but nonetheless it is set.
Info:
DCD 1.3.1 on Windows 10 1909 x64
Visual Studio 2019
DYMO.Connect.SDK 1.3.1.115
Installation steps followed from WPFSDKSample
Steps to reproduce:
using DymoSDK.Implementations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PrinterInfo
{
class Program
{
static void Main(string[] args)
{
IEnumerable<DymoSDK.Interfaces.IPrinter> Printers;
Printers = DymoPrinter.Instance.GetPrinters();
foreach (DymoSDK.Interfaces.IPrinter Printer in Printers)
{
Console.WriteLine(Printer.Name + ", IsConnected: " + Printer.IsConnected + ", IsAutoCutSupported: " + Printer.IsAutoCutSupported + ", PrinterType: " + Printer.PrinterType);
}
Environment.Exit(0);
}
}
}
Hello
Your new nuget package requires .NET Framework 4.6.1. But I have to support application with .NET Framework 4.0
I install yor older nuget package: DYMO.Label https://www.nuget.org/packages/DYMO.Label
but i get an error: System.Runtime.InteropServices.COMException
COM not found CLSID {E8D851FA-9967-4ADF-9644-0183B9B1EA68}
Could you please help me?
Info:
DCD 1.3.1 on Windows 10 1909 x64
Visual Studio 2019
DYMO.Connect.SDK 1.3.1.115
Installation steps followed from WPFSDKSample
Steps to reproduce:
3F21C736502C8A39
) and setting extra smalllabel A is about 7.4cm long (just like the GUI interface shows), label B is 12.4cm (not the same as the preview shows). Actually printed area is about 5.2cm on both labels. This means that labels printed from the SDK waste 5cm of label every label of just unused white space.
[EDIT]
Tested with CODE 39 barcode type, and that type has no issues (prints from DCD interface match prints from WPFSDKSample.exe)
Also tested with QR Codes, and those match as well, so it specifically seems to be a Code 128 Auto issue.
Hello folks,
I just switched to a Dymo printer and wanted to setup my web printing capability via JavaScript again.
The setup generally works and now I want to customize it to my personal needs.
Therefore I created a label template with Dymo Conenct and saved it.
The question is now how can I access certain objects of this label with JavaScript?
I remember it from the competitors solution that one can specify a name of a label object to which one could connect in JavaScript to modify the content dynamically.
Is there a way to do it similarly in Dymo?
The usecase is a user can select one or many barcodes on a website.
Then he clicks printing, choose a label template and prints a complementary label with data coming from a database like project title, date of arrival, etc.
Many Thanks!
BG, Michael
System.NullReferenceException: 'Object reference not set to an instance of an object.' is received whenever I call:
DymoSDK.App.Init();
I'm using the WPF sample here. Attempting this with "DCDSetup1.4.2.82.exe" installed (DYMO Connect for Desktop v1.4.2.82).
From reading through other issues, it seems like once you've got this framework working, if you change a single version of ANYTHING... it will break.
Does anyone have anything good to say about this mess?
When creating a label in Dymo Connect, all works as expected when using the JS framework except using setObjectText on a QRCode object - the JS is missing the switch case for QRCodeObject.
Current switch:
dymo.label.framework.Label.prototype.setObjectText = function(e, o) {
var t = this._getObjectByNameElement(e);
switch (t.tagName) {
case "AddressObject":
case "TextObject":
this._setAddressObjectText(t, o);
break;
case "BarcodeObject":
this._setBarcodeObjectText(t, o);
break;
case "ImageObject":
this._setImageObjectText(t, o);
break;
case "CircularTextObject":
this.isDCDLabel() ? this._setAddressObjectText(t, o) : dymo.xml.setElementText(dymo.xml.getElement(t, "Text"), o);
break;
case "DateTimeObject":
case "CounterObject":
this._setDateTimeCounterObjectText(t, o)
}
return this
}
The framework is also missing a matching a _setQRCodeObjectText()
function, similar to the one for barcode (_setBarcodeObjectText()
)
Hi, I am just a user with no programming experience. We run Dymo 400 and 450 printers on an Apple Airport Network device for years. No problem with Mac computers.
But now I have to install the Dymo printer and Dymo Connect software on Win 10 computers.
First, I install Bonjour Printer service which finds the Dymo printer in the list.
But then Bonjour asks for a driver - and I can't find a simple Dymo driver for Win 10.
Could anyone help me on that?
Regards, Martin
I have been experimenting with the sdk and when I print directly from the
dymo connect program, my label size is smaller while printing an ean13
barcode. But when I use the same dymo file from the dymo connect sdk, it
adds a margin. Is this intended?
Check the attached dymo file
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.