Update barcode after each label

Label printing integration (NiceWatch middleware and ActiveX programming interface)

Moderators: Georges, milos, NiceLabel Support Team

Post Reply
bastv
Enthusiast
Posts: 20
Joined: Tue Aug 28, 2007 4:44 pm
Location: Netherlands
Contact:

Update barcode after each label

Post by bastv » Thu Oct 11, 2007 2:20 pm

I cant figure out how to update the barcode after each label.

when i print 5 labels on the printer, then (sato 408e) cuts the batch

each label has a different barcode.
so
label1 had barcode (96)123456
label2 had barcode (96)125556
label3 had barcode (96)965412

the barcodes are generated by VB/SQL database.

i think i need to work with sessionstart and sessionsend .
this is what i have now.

Code: Select all

LabelIntf.SessionStart()

i96 = "123456"
GenerateBarcode()
LabelIntf.Print(1)
i96 = "125556"
GenerateBarcode()
LabelIntf.Print(1)
i96 = "965412"
GenerateBarcode()
LabelIntf.Print(1)

LabelIntf.SessionEnd()
this will print 3 labels with different barcodes.
thats good!

the only problem is that the printer cuts after every print so i have 3 separate labels.
how can i generate 1 print job with each label a different barcode?

User avatar
lpatty
NiceLabel
NiceLabel
Posts: 60
Joined: Mon Sep 11, 2006 4:15 pm
Location: Milwaukee, WI
Contact:

Post by lpatty » Sat Oct 13, 2007 12:01 am

Are you saying that the labels are printing correctly, just not cutting correctly?

bastv
Enthusiast
Posts: 20
Joined: Tue Aug 28, 2007 4:44 pm
Location: Netherlands
Contact:

Post by bastv » Sat Oct 13, 2007 6:44 pm

lpatty wrote:Are you saying that the labels are printing correctly, just not cutting correctly?
yes in the way above its printing correctly.
but it creates multiple print jobs.
can it be done in 1 pring job so it cuts after the last label?

bastv
Enthusiast
Posts: 20
Joined: Tue Aug 28, 2007 4:44 pm
Location: Netherlands
Contact:

Post by bastv » Thu Oct 18, 2007 10:44 am

nobody?

can i send a cut command to the printer?

User avatar
lpatty
NiceLabel
NiceLabel
Posts: 60
Joined: Mon Sep 11, 2006 4:15 pm
Location: Milwaukee, WI
Contact:

Post by lpatty » Thu Oct 18, 2007 11:41 pm

This is set in the label design. In the File|Label Setup menu, go to the Cutter Setting tab. In here, select the checkbox for 'Enable Cutter'. Set the parameter for cutting interval to 'After the last printed label'.

Since you are using the Session commands in your code, this should generate a single job to the spooler and issue a single cut.

If this does not work, you can create a variable that you will assign a value to in your code that will trigger a cut. In the label design, same dialog box as above, select 'Based on the variable vallue change' and select the variable you created as the flag.

bastv
Enthusiast
Posts: 20
Joined: Tue Aug 28, 2007 4:44 pm
Location: Netherlands
Contact:

Post by bastv » Fri Oct 19, 2007 8:49 am

lpatty wrote:This is set in the label design. In the File|Label Setup menu, go to the Cutter Setting tab. In here, select the checkbox for 'Enable Cutter'. Set the parameter for cutting interval to 'After the last printed label'.

Since you are using the Session commands in your code, this should generate a single job to the spooler and issue a single cut.

If this does not work, you can create a variable that you will assign a value to in your code that will trigger a cut. In the label design, same dialog box as above, select 'Based on the variable vallue change' and select the variable you created as the flag.
thanx Based on the variable worked fine!

Post Reply