Cancel printing for only certain records via VBScript?
BT 10.1
This works at doc level VBScript OnNewRecord:
If Field("DB.NAME") = "JAMES" Then
Format.CancelPrinting()
End If
Problem is, it cancels the entire print job. I need only records that have NAME = JAMES to cancel. I need the evaluation made on a per record basis and the cancelprinting command also only for that record.
Can this be done?
-
Shotaro Ito
★ BarTender Hero ★
You can specify Query in database setup,
Such as to print
NAME is not equal to "JAMES"In Automation edition, you have print condition in template - you can specify to not print if specific condition is met
From Page setup > Template tab.
(print condition is not available in Professional edition.)0 -
Shotaro, thanks! I had completely forgotten about that feature. I think I am even using it on some template I created years back, thanks :)
0
Please sign in to leave a comment.
Comments
2 comments