标签无法打印 [英] Label cannot be printed

查看:117
本文介绍了标签无法打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下XML文件及其内容如下:



 <?  xml     version   =  1.0    encoding   =  UTF-8    >  
< !DOCTYPE 标签 SYSTEM \\pena-ap-008v \ SF_Test_Label\label.dtd >
< 标签 _ FORMAT = GSF_Test_Label\1055_3122_Box_label.lwl _JOBNAME = $ JOBNAME $ _ PRINTERNAME = $ PRINTERNAME $ >
< 标签 >
< 变量 名称 = CustAssNumber > $ CustAssNumber $ < / variable >
< 变量 名称 = CustP_N > $ CustP_N $ < / variable >
< 变量 名称 = CustRev > $ CustRev $ < / variable >
< 变量 name = BatchNumber > $ BatchNumber $ < / variable >
< 变量 名称 = SerNumber1 > $ SerNumber1 $ < / variable >
< variable name = 日期时间 > $ DateTime $ < / variable >
< / label >
< / labels >







我会使用C#代码将所有值传递到XML文件中及其内容/输出如下:



?xml version = \1.0 \encoding = \UTF- 8\? !DOCTYPE标签SYSTEM \\\\\pena-ap-008v \\ GSF_Test_Label \\label.dtd \[]标签_FORMAT = \GSF_Test_Label \\1055_3122_Box_label。 lwl \_ JOBNAME = \f996f9eb-f725-4e59-9e70-fab2edb57ba7 \_ PRINTERNAME = \GSFTEST \label variable name = \CustAssNumber \1053-7116 / variable variable name = \\ \\CustP_N \/变量名称= \CustRev \/变量名称= \BatchNumber \/变量名称= \SerNumber1 \JG130802962 /变量名称= \ DateTime \2014年12月19日/变量/标签/标签





对于混乱感到抱歉,以上是我检索的输出使用调试模式。完成所有操作后,应根据XML中的所有值打印出标签,并且会出现奇怪的信息标签已成功打印,但标签未显示出来。



任何帮助表示赞赏。谢谢。

解决方案

JOBNAME


_ PRINTERNAME =


PRINTERNAME

Hi, I have the following XML file and its content as below:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE labels SYSTEM "\\pena-ap-008v\GSF_Test_Label\label.dtd">
<labels _FORMAT="GSF_Test_Label\1055_3122_Box_label.lwl" _JOBNAME="$JOBNAME$" _PRINTERNAME="$PRINTERNAME$">
<label>
<variable name="CustAssNumber">$CustAssNumber$</variable>
<variable name="CustP_N">$CustP_N$</variable>
<variable name="CustRev">$CustRev$</variable>
<variable name="BatchNumber">$BatchNumber$</variable>
<variable name="SerNumber1">$SerNumber1$</variable>
<variable name="DateTime">$DateTime$</variable>
</label>
</labels>




I will pass all the value into the XML file using C# codes and its content/output as below:

?xml version=\"1.0\" encoding=\"UTF-8\"? !DOCTYPE labels SYSTEM \"\\\\pena-ap-008v\\GSF_Test_Label\\label.dtd\"[] labels _FORMAT=\"GSF_Test_Label\\1055_3122_Box_label.lwl\" _JOBNAME=\"f996f9eb-f725-4e59-9e70-fab2edb57ba7\" _PRINTERNAME=\"GSFTEST\" label variable name=\"CustAssNumber\" 1053-7116 /variable variable name=\"CustP_N\" /variable variable name=\"CustRev\" /variable variable name=\"BatchNumber\" /variable variable name=\"SerNumber1\" JG130802962 /variable variable name=\"DateTime\" 19 Dec 2014 /variable /label /labels



sorry for the messiness, the above is the output that I retrieved using debug mode. After all has been done, a label should be printed out according to all the values inside the XML and the weird thing is the message "Label has been printed successfully" is prompted but the label did not come out.

Any help is appreciated. Thank you.

解决方案

JOBNAME


" _PRINTERNAME="


PRINTERNAME


这篇关于标签无法打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆