Conditional Printing Using Suppression フォローする

0
Avatar
Legacy Poster

I have created a label in BarTender Automation  10.1 SR4 with two text fields using suppression:  Text Properties>Transforms

 

when I print individual labels all the suppression logic works fine.  One text field prints if Condition A is met, the other text field prints if Condtion A is NOT met.

 

However, if I select two labels one which has Condition A and the other label does not, both labels print as if Condition A is met.

 

Any advice for this newbie?   

 

Thank you 

2 コメント

0
Avatar
Ian Cummings
モデレータ
コメントアクション Permalink

When you say "text fields" do you mean data sources in a single text object, or do you mean two separate text objects on your label layout?  I presume the former.

 

It sounds to my like you should instead have a single data source for you object that uses an event based VB script.  Then for the OnIdenticalLabel or OnNewRecord event (depending on the setup of your particular label), use an If...Then statement to decide at time of printing that label which value the data source will have.

 

If X = "Y" Then
  value = "The value was Y"
Else
  value = "The value wasn't Y"
End If
0
Avatar
Legacy Poster
コメントアクション Permalink

Ian -  I had two separate text objects on the layout.    I was suppressing one or the other depending whether it met Condition A or not.

 

I'll look into VB scripting.  I've never used it before.    This was my 1st ever BarTender label.

 

Thank you

サインインしてコメントを残してください。