Label 1 Of ? Seguir

0
Avatar
Legacy Poster

I'm printing multiple labels at a time from source files through Commander.

 

I need Label x of y.

 

I found the Label X of Y field under components, but it only increments the first field, so for example label 1 of 1, 2 of 1, 3 of 1. The second number never increments. I've tried putting the 

 

Value = Format.NumberSerializedLabels

 

In different sections of the script like OnPrintStart, etc. but the results are the same.

 

Any ideas?

8 comentarios

0
Avatar
Ian Cummings
Moderador
Acciones de comentarios Permalink

The first data source should be a regular, incrementing serial number, the later could be a single line VB script containing the Format.NumberSerializedLabels expression,  When printing be sure to set a print quantity for the number of serialized labels to print, not identical copies which probably should remain at 1.

0
Avatar
Legacy Poster
Acciones de comentarios Permalink

The first data source should be a regular, incrementing serial number, the later could be a single line VB script containing the Format.NumberSerializedLabels expression,  When printing be sure to set a print quantity for the number of serialized labels to print, not identical copies which probably should remain at 1.

Thanks, where do I set a print quantity, though? A given print job could have one label or dozens, so where would I set the label template to pick up the size of the print job real time? I presume as Bartender sends the print job based on the text file it knows how many labels it is sending, so somehow as it reads through that file, before it sends any to the printer, it needs to set that quantity.

0
Avatar
Ian Cummings
Moderador
Acciones de comentarios Permalink

Are you wanting to specify the quantity of labels to print via a data entry form?  To do this click the properties button next to the print quantity in question in the Print dialog, select to set it by data source, and then configure the data source to be prompted at print time in the usual way.

0
Avatar
Legacy Poster
Acciones de comentarios Permalink

Are you wanting to specify the quantity of labels to print via a data entry form?  To do this click the properties button next to the print quantity in question in the Print dialog, select to set it by data source, and then configure the data source to be prompted at print time in the usual way.

I'm not, as there is no user interface, so I cannot use a form field to figure the number of labels. I need bartender to simply figure it out based on the number of records it gets in the text file. I cannot attach a picture of my current print tab because the forum isn't working properly ;)

0
Avatar
Ian Cummings
Moderador
Acciones de comentarios Permalink

If the document is connected to a database, and identical copies, and serialized labels are both set to one, then the print quantity of labels is based on the number of records that are selected at print time for printing.  There is a property value for the two print quantity values, which in this case are both 1 so is of no help, but there is no number of selected records property value that we can use.  I'll have to think about this one.

0
Avatar
Legacy Poster
Acciones de comentarios Permalink

Thanks--yeah the "database" is just a text file being fed through Commander with no user input and "record selection" in the label print dialogue is "all" for queried recordsa dn "1..." for selected records. 

 

It sounds like I may need to have the originating system (which does know how many records there are) expose an additional field which I can use for the y part of "label x of y"...

0
Avatar
Ian Cummings
Moderador
Acciones de comentarios Permalink

Yes, it seems to me like this is your only option.

0
Avatar
Legacy Poster
Acciones de comentarios Permalink

Thanks, Ian. That's not a crisis by any measure, but I wanted to be sure before I told the developer that was the way to go.

Iniciar sesión para dejar un comentario.