跳至主內容

搜尋

搜尋

Adding And Removing Background Color During Printing

評論

3 條評論

  • Avatar
    Michael Toupin (mtoupin

    All you'd need to do is use TextBackgroundColor - BtColor.white to get it back to the white background if the data isn't detected.

    0
  • Avatar
    Legacy Poster

    Problem still there when printing the label.  I’m loading this script via the following

     

     

     

    • File

     

    • Label Format option

     

    • OnNewRecord (VB Scripting)

     

    • Entering the following:

     

     

     

    1. Format.Objects("Text 13").TextBackgroundColor - BtColor.White

     

    1. Format.Objects("Text 13").TextBackgroundColor - BtColor.White

     

     

     

    As I stated before, it will add the background when text is detected, but will not remove when no text is detected.

    0
  • Avatar
    Domingo Rodriguez
    版主

    All what you would need to do is to verify if the value of the text object in question is empty:

     

    If Format.Objects("Text 13").value = "" Then

       ...

    Else ....

    End If

     

    You will find a full reference on this on BarTender's Help (F1 key within BarTender) by accessing the "Visual Basic Scripting > Scripting Objects > Object Reference > Object Object" topic.

    0

登入寫評論。