Skip to main content

Search

Search

Show/hide Text Object Based On Data Field

Comments

2 comments

  • Avatar
    Fernando Ramos Miracle

    Hello Mattg,

     

    Could you let me know what version and edition of BarTender are you working with?

     

    1. Please note that on version 10.1 we greatly improved our conditional printing feature for objects, layers, templates... (Automation edition or higher required). You can now specify when to print such objects based on the value of a database field, a named data source...

     

    2. If you don't have a v10.1 Automation license you can still get a similar result using VB script specifying an "empty" value when the condition is met. The script would look similar to the below:

    If Field("Table.FieldName") = "No" Then
     Value = ""
    End If
     

    In my example I'm using a database field as reference, but you can also use a named data source through the function Format.NamedSubStrings("DataSourceName").Value.

     

    Regards

    0
  • Avatar
    Legacy Poster

    Fernando, 

     

    I am using version 8.1.  I was able to do this using a VB script similar to the on you provided.  Thank you for your help!

    0

Please sign in to leave a comment.