Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/418.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用DYMO Connect for Desktop为标签生成XML以在Javascript中打印_Javascript_Dymo - Fatal编程技术网

如何使用DYMO Connect for Desktop为标签生成XML以在Javascript中打印

如何使用DYMO Connect for Desktop为标签生成XML以在Javascript中打印,javascript,dymo,Javascript,Dymo,我设法从DYMO Connect for Desktop v1.3.1打印标签。现在我正在尝试使用Javascript打印相同的标签。这个例子是一个很好的例子。它包含三种不同的XML标签设计。但是,我想使用我为桌面创建的DYMO Connect设计。当我尝试使用Dymo Connect保存的Dymo文件(这是一个扩展名为“.Dymo”的XML文件)时,如果使用Dymo.label.framework.openLabelXml()加载它,我会收到以下错误消息: DYMO Connect文件中的XM

我设法从DYMO Connect for Desktop v1.3.1打印标签。现在我正在尝试使用Javascript打印相同的标签。这个例子是一个很好的例子。它包含三种不同的XML标签设计。但是,我想使用我为桌面创建的DYMO Connect设计。当我尝试使用Dymo Connect保存的Dymo文件(这是一个扩展名为“.Dymo”的XML文件)时,如果使用
Dymo.label.framework.openLabelXml()
加载它,我会收到以下错误消息:


DYMO Connect文件中的XML看起来与
printmatlabel.js
中标签设计的XML非常不同。有人能帮我吗?

今天早上我和你有同样的问题

最新的javascript框架与使用Dymo Connect创建的标签模板不兼容。您需要使用以前的软件创建它。版本8.3.1有效

不过要小心,安装的软件和代码都无法识别打印机。您需要卸载这两个软件并重新安装Dymo Connect

希望这有帮助!

谢谢燕!旧版本的软件确实以我需要的格式存储标签。很高兴我能提供帮助。但在版本8.3.1中,我们无法创建QR条形码,而且它也不支持所有纸张格式。
{"message":"An error has occurred.","exceptionMessage":"'Element' is an invalid XmlNodeType. Line 22, position 4.","exceptionType":"System.Xml.XmlException","stackTrace":"   at System.Xml.XmlReader.ReadEndElement()\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.GetListLabelsFromSetXML(String labelXml, String labelSetXml)\r\n   at DYMOWebApi.Windows.Controllers.DymoDLSSDKController.PrintLabel2(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 Td (DYMO.Label.Framework.3.0.js:61)
    at ae (DYMO.Label.Framework.3.0.js:66)
    at be.printLabel2 (DYMO.Label.Framework.3.0.js:67)
    at Object.printLabel2 (DYMO.Label.Framework.3.0.js:101)
    at oe (DYMO.Label.Framework.3.0.js:126)
    at qe (DYMO.Label.Framework.3.0.js:129)
    at Y.G (DYMO.Label.Framework.3.0.js:74)
    at printLabel (207:608)
    at startupCode (207:617)
    at DYMO.Label.Framework.3.0.js:110
Uncaught Error: "Illegal characters in path."

"Illegal characters in path.": 
    at Td (DYMO.Label.Framework.3.0.js:61)
    at ae (DYMO.Label.Framework.3.0.js:66)
    at be.openLabelFile (DYMO.Label.Framework.3.0.js:67)
    at Object.openLabelFile (DYMO.Label.Framework.3.0.js:101)
    at Object.openLabelFile (DYMO.Label.Framework.3.0.js:122)
    at printLabel (207:595)
    at startupCode (207:617)
    at DYMO.Label.Framework.3.0.js:110
    at e (DYMO.Label.Framework.3.0.js:115)
    at cd.<anonymous> (DYMO.Label.Framework.3.0.js:62)