Skip to main content

Search

Search

Label Validation

Comments

4 comments

  • Avatar
    Legacy Poster

    I'd move it to the print time event

    0
  • Avatar
    Legacy Poster

    I moved it to the 'OnPrintJobStart' event but now I am not getting the cancel printing error message, it just goes right back to the printstation main window.

    0
  • Avatar
    Legacy Poster

    I am outside my realm of knowledge, maybe a moderator will help you. 

    0
  • Avatar
    Shotaro Ito

    Assuming that you're using BarTender 10.1 Automation edition or above, you can have condition for a template to print.

    in Page setup > templates, you can specify when to print the main template such as database value doesn't match a number.

     

    Another thought is keep the script in OnNewRercord of a text datasource then insert the line below at the beginning of the script.

     

    If Format.IsPrinting = false Then Exit sub

    0

Please sign in to leave a comment.