Duplicate Labels Created By Bartender Follow
My VB.NET application integrates with BarTender 9.4 to produce cleanroom labels. The user scans a barcode to pre-populate a form then selects a Print button to create the labels. The labels are produced by populating a BarTender label template file.
This works really well but every so often (about once every two months), the user scans the barcode and the previous label is produced. This happens several times then the software seems to clear itself. Usually I have to close the software to ensure nothing is running.
I have put code in the software to ensure that the BarTender Format object is disposed of after a print job is finished. Everything has to be instantiated from fresh every time a print job is sent. Have also ensured that any variables used are only temporary and are destroyed immediately after use.
I have log files in place to capture scanning and printing events and these seem to show that the same barcode is being repeatedly scanned so that would explain the problem but I just am wondering if BarTender could be causing problems.
I have included my print sub-routine below including the disposal method after printing.
Please sign in to leave a comment.