Error during BTXML Script processing
I am using ActiveX automation to pass the following BTXML script to BarTender. The XML Response containing the error description is below the script .
According to the error, the ReturnPrintData attribute is not defind in the DTD/Schema, but the Print tag bolded below appears to formatted correctly. If I remove the attributes, the labels print. I'm not sure where the DTD/Schema file is located or how to validate that it has these attributes defined.
<?xml version="1.0"?><XMLScript Version="1.0"><Command><Print WaitForJobToComplete="true" Timeout="-1" ReturnPrintData="true" ReturnSummary="true" ReturnLabelData="true" ReturnChecksum="true"><PrintSetup><IdenticalCopiesOfLabel>1</IdenticalCopiesOfLabel><Printer>\\jasperps01\KIMBALL1872A</Printer></PrintSetup><Format>lib://Ferdinand/ComponentLabels/DOOR.btw</Format><RecordSet Name="File 1" Type="btTextFile" AddIfNone="true"><Delimitation>btDelimQuoteAndComma</Delimitation><TextData>
<![CDATA[
"SADPLANT", "SADSCHID", "SADACKNBR", "SADACKSUF", "SADACKLNE", "SADPRTSEQ", "SADQTYCNT", "SADLCOLOR", "SADQTYORD", "SADQTDEAD", "SADQTYPER", "SADOFSCLS", "SADCFMCDE", "SADOFSLD", "SADPLTLD", "SADPLTSTP", "SADFPOD", "SADFTRKGP", "SADFTRKSQ", "SADASYLNE", "SADLDATE", "SADFINPRT", "SADRAWPRT", "SADLBLSEQ", "SADCART", "SADSLOT", "SADDESC", "SADDIMENS", "SADSTYLE", "SADPRDCDE", "SADHNGSWI", "SADEXCSWI", "SADCOLORC", "SADCOLORD", "SADDRWCON", "SADSPTMUL", "SADVORB", "SADOVLDES", "SADDRWVRT", "SADDRWHRT", "SADPROC1", "SADPROC2", "SADPROC3", "SADPRECVR", "SADFGDESC", "SADADDSWI", "SADPPRILOC", "SADPPRIADR", "SADPALTLOC", "SADPALTADR", "SADUNIQUE", "SADUSED", "SADSTYNAM1", "SADSTYNAM2", "SADPRCDES1", "SADPRCDES2", "SADPRCDES3", "SADCOLCLMP", "SADPLYENDS", "SADSTYDDES", "SADPARTABR", "SADFGSEQ", "SADRECTYPE", "SADFIL1", "SADFIL2", "SADFIL3", "SADFIL4", "SADFIL5", "SAD6WAY", "SADUPDOPR", "SADUPDDTE", "SADUPDTME", "ST_AT_COLOR", "STYLE_SEQ", "printer", "format"
"22", "9947309", "762645", "1", "35", "537", "1", "ORANGE", "1", "0", "1", "WALL", "312", "3096", "J3", "01", "1", "7", "7", "1W", "1180501", "541147", "531775", "9067", "551", "28", "MPL MULL SQ DR FIN SARSAPARILLA 55W,56W,5FP ", " 3/4 X 15 7/8 X 39 7/8 ", "96W", "WMD1842 ", "L", " ", "SM", "MAPLE SARSAPARI", " ", " ", " ", "7/16 ", " ", " ", "29", "06", "02", " ", "WALL CABT W/MULLION DOOR ", " ", "MITMUL", "303915 ", " ", "MULLION ", "2920198", "P", "RADFORD SELECT", "MPL SARSP ", "DOORS - FINISHED ", "SOLID WOOD ", "MAPLE ", " ", " ", "RADFORD SELECT ", " ", "622757", "R", " ", " ", " ", "C-010S-752", "1", "POSC", "W0890R", "1180425", "214836", "SARSAPARILLA ", "120", "", ""
]]>
</TextData></RecordSet></Print></Command></XMLScript>
Here is the XML Response:
<?xml version="1.0" encoding="utf-16"?>
<Response Version="2.0" AppName="BarTender" AppVersion="2016 R6" AppVersionId="1100" AppVersionMajor="11" AppVersionMinor="0" AppVersionBuild="3141" AppInstancePid="14212" AppInstanceGuid="{0FE530F5-98D0-4FC7-B05F-F60916C2A292}">
<User>MBCI-AD\1017178</User>
<Server>R90NTEQL</Server>
<Message Id="3908" Guid="{275655F4-3976-4D73-9076-358EB53A55E7}" Severity="Error" Category="XML Script" Response="OK">
<Text>An error occurred during BTXML Script processing:
The attribute 'ReturnPrintData' on the element 'Print' is not defined in the DTD/Schema.
Line 1, Column 193: '<?xml version="1.0"?><XMLScript Version="1.0"><Command><Print WaitForJobToComplete="true" Timeout="-1" ReturnPrintData="true" ReturnSummary="true" ReturnLabelData="true" ReturnChecksum="true"><PrintSetup><IdenticalCopiesOfLabel>1</IdenticalCopiesOfLabel><Printer>\\jasperps01\KIMBALL1872A</Printer></PrintSetup><Format>lib://Ferdinand/ComponentLabels/DOOR.btw</Format><RecordSet Name="File 1" Type="btTextFile" AddIfNone="true"><Delimitation>btDelimQuoteAndComma</Delimitation><TextData>'
while parsing:"C:\Program Files (x86)\ComponentLabels\BarTenderOutput.btxml"</Text>
</Message>
</Response>
-
I found the problem. I was using 1.0 for XMLScript element's Version attribute, but it needs to be 2.0.
1
請登入寫評論。
評論
1 條評論