Btxml Print Job To Office Printer - First "label" Is Good, Rest Have Smeared Lines
Sorry for the long subject, wanted to give a brief description of the issue, other than it's not working! :)
Here is my issue, I have a program that generates a BTXML script that goes to commander etc and prints. This program has a few different Zebra printers it has been using and working just fine with. We recently wanted to add a paper form that goes with each label, and so I made a "label" and set it to print to our HP OfficeJet Pro 8600, networked. During my testing of this setup, everything seemed to be working fine. However, my testing only had a single "label" coming through on a job, since I didn't want to waste a bunch of paper.
When I went to test it with a batch of 2+ there was an issue. After the first "label" printed successfully, the subsequent "labels" would come through with just smeared lines, and not even in anything that made sense with the design of the label.
What I also noticed that if I did I printed 2 jobs to fast the problem would occur on the first "label" as well.
I've tried to generate a BTXML script for each serial number, rather than using 1 script to call them all with the same results. I even introduced a small pause between sending the BTXML over with no change (I cannot have a huge pause).
<?xml version="1.0" encoding="utf-8"?><XMLScript Version="2.0"><Command Name="Job1"><Print><Format>C:\labels\Sign_IT.btw</Format> <PrintSetup><Printer>\\printers\Production</Printer><PaperTray>Tray1</PaperTray><EnablePrompting>false</EnablePrompting></PrintSetup> <NamedSubString Name="Item"><Value>AB123CDEF45</Value></NamedSubString> <NamedSubString Name="Position"><Value>TOP</Value></NamedSubString> <NamedSubString Name="ItemDescription"><Value>AMAZING PART</Value></NamedSubString> <NamedSubString Name="ordernumber"><Value>100001</Value></NamedSubString> <NamedSubString Name="SerialNumber"><Value>1234567891</Value></NamedSubString> <NamedSubString Name="CustomerName"><Value>GREAT CUSTOMER</Value></NamedSubString> <NamedSubString Name="Numberoflabels"><Value>3</Value></NamedSubString> </Print></Command></XMLScript>
The Numberoflabels relates to the print dialog quantity section, "Serial Numbers", all the other named substrings tie back to parts on the "label"
If needed I can upload a copy of a good "label" and a bad "label".
Thank you in advance for your help,
JK
-
To make a couple updates as I've continued to work on this.
If I import the BTXML file from the bartender server (.old) it prints perfectly everytime.
If I change the extension from the .old to .xml again it works f I change 1, but if I change 2 at the same time, then the first one will work, and the second will return the smeared lines.
0 -
So to continue to add to what is going on with this:
I have created a duplicate form (so form0.btw and form1.btw ) and have tried to rotate between the 2 based on a temporary file created. So in testing with each way:
If form0.btw goes first it prints fine, then form1.btw will be the smeared lines
If form1.btw goes first it prints fine, then form0.btw will be the smeared lines
After playing with that, I did some more research on the printer end of things and was able to uncover that if I changed the printer setting to send the file (RAW format) directly to the printer it removes the issue.
Any other insight into this would be welcome, if I figure out anything else I will post it as well.
0 -
If you want to print more that one label at a time why don't you use CDATA for defining record data, rather than setting values via data source names directly.
The smearing problem seems to be printer hardware specific, and in any case a photo would help visualize what you mean by this.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare