Printing Items Only On The Last Page Follow

0
Avatar
Legacy Poster

I have a label that I use for the contents of a shipped package. I have 8 repeating fields on this label that will also carry over to a new label if the number of items in this package exceeds 8.

 

What I'm looking to do is take the total number of pieces in the package and print it ONLY at the bottom of the last label. If only 1 label is printed, it should treat that 1 label as the last and print, but if the label has more than 1 copy it should only print on the bottom of the last page.

 

I'm ok with VB scripting, I'm just not sure if there is an event like OnLastPage or a property like LastPage = True.

 

Has anyone ever tried something like this?

5 comments

0
Avatar
Domingo Rodriguez
Moderator
Comment actions Permalink

In BarTender v10.1, we've introduced a new data source called "Print Job Field" which can show the "Total Number of Pages", "Total Number of Printed Templates" and "Total Number of Records". This data source can have a shared name and can be referenced via VBScript at print time. This feature, appart from our recently added "Multiple Templates per document" and "Multiple Layers per Template" features, should be interesting to you.

 

Please also check our latest What's New White Papers:

 

What's New in BarTender v10.1

http://www.bartenderbarcodesoftware.com/label-software/whitepapers/WhitePaper_WhatsNewInBT101.pdf

 

What's New in BarTender v10.0

http://www.bartenderbarcodesoftware.com/label-software/whitepapers/WhitePaper_WhatsNewInBT10.pdf

0
Avatar
Legacy Poster
Comment actions Permalink

That does sound interesting, however I am on v10.0. I'm not sure purchasing an update is an option at this time since we bought the 10.0 a couple months ago. Is there a way to do this in 10.0?

0
Avatar
Domingo Rodriguez
Moderator
Comment actions Permalink

Probably yes, but not directly. You would need to calculate by using some VBScripting the number of total pages which will be printed (you already know that 1 page contains up to 8 items). If it's the last page, then an optional text object will be shown on the label.

 

Some more information on global BT document VBScripting can be found on our White Paper:

http://www.bartenderbarcodesoftware.com/label-software/whitepapers/Dynamically-Changing-Objects-At-Print-Time-Using-VB-Script.pdf

0
Avatar
Legacy Poster
Comment actions Permalink

I can do the upfront calculation of the number of pages and pass it to the label, but I'm not sure how to find what page number is currently printing from Bartender.

0
Avatar
Domingo Rodriguez
Moderator
Comment actions Permalink

You can just have a counter out of the label design (which will not print). For each label that is printed, this counter would sum +1. Once you reach the last label to print, you make the object visible.

Please sign in to leave a comment.