How To Print Many Labels With Different Templates To One Print Job?
to start: I am using .Net and have created an interface for a manufacturing company to print labels, on demand/or by the roll, that get scanned and processed in various ways.
A typical label roll will consist of 3 Label Template types:
1) A bag label
2) A badge Label
3) A roll designation label.
Each of the above have their own template.
When my customer prints labels they can do 30,000 labels where that is broken down to 400 pcs per roll.
They then print 400 pcs at a time.
With BarTender SDK I can't seem to find a way to send a label to a batch job only to the printer. Which causes each Label to be a one page document and is rather slow.
I'd like to send all 400 labels to the spooler as one print job.
I want to do this all using the SDK if possible. I am not wanting to have to create other process unless they can be automated through .Net code.
I tried searching the forums here and could not find an exact answer. I am not just printing 400pcs of the same label. Each label has 7 data fields that change.
Everything works great for single piece flow (one label at a time). But batch printing is very slow since it sends a print job for each single label.
Please advise.
Mike
-
Shotaro Ito
★ BarTender Hero ★
Use database field - create a 400 rows of temp text database by your code, assign that to btw file and print.
Basically that's what you can do with Commander, however if you want to do that entirely by .net SDK, article below might helps.
http://forums.seagullscientific.com/index.php?/topic/525-sample-code-create-and-assign-csv-database/
0 -
Legacy Poster
★ BarTender Hero ★
that is not going to work with multiple label templates right? that is the problem.
I understand I can create a database or text file db connection. but we use up to 4 different templates and we want to stay away from layers as it makes editing the label template more of a chore for those that did not originally create it.
Unless I don't understand but as soon as you change to a different template and print from that it will start a new job. That is the problem.
to be clear.
I have 4 label types. lets call them A,B,C and D.
when the print job starts:
A prints.
C
B
B
B
B
C
B
B
C
B
D
so in this case we preopen 4 templates. We issue a template.print based on which one is needed.
Mike
0 -
Legacy Poster
★ BarTender Hero ★
I just noticed that each label document can have multiple templates assigned to it. I think this might be what I need to use.
will look into this.
then I can set the template to one data source and use the template I need from with in the template document. Hope I am on the right track.
Mike
0 -
Brian Fisher
★ BarTender Hero ★
You can do this with each different label as a template in the same file. Then use one of the database fields to indicate which label template you want to print. On the template "Print when" dialog, you can say: when field template_name = "A" or whatever you need. Send 400 records to this one BTW file, and it will print in one job.
0
請登入寫評論。
評論
4 條評論