跳至主內容

搜尋

搜尋

Change Font Weight Depending On The Contents Of A Textbox

評論

6 條評論

  • Avatar
    Legacy Poster

    Tim,

     

    If it is the same word(s) each time that need to adjust the standard/bold font then it is worth checking out the White Paper on printing EU Allergen labels:

     

    http://www.seagullscientific.com/media/101587/eu-allergen-labeling-201511.pdf

     

    Also depending on your version of BarTender there maybe a sample label called "EU FIC Allergen Label.btw" that shows the Allergen font change in action which you may find useful. 

    0
  • Avatar
    Legacy Poster

    Hello Pete,

     

    Thank you for your fast answer. I've read the pdf about the allergen Labels but I don't know how to use these codes for myself.

     

    I want to explain my problem a little bit better. Also because it changed a bit in the last 24 hours.

     

    I've attached an example of my labels.

     

    As you can see there a different textboxes labelled with Text 1 to Text 41. I want to change the font of the textboxes with even numbers if the respective textbox with an odd number is empty.

     

    (Text 2 = bold if Text 3 = empty; Text 4 = bold if Text 5 = empty; and so on)

     

    Regards Tim

    0
  • Avatar
    Legacy Poster

    I take it Text 2 is regular if Text 3 isnt empty etc.?

     

    In which case couldn't  you use suppression instead?  You could make Text 2 contain 2 sub-strings both with different fonts, the first would be the regular font that appears if Text 3 contains data whilst the second string would be Bold that only appears if 3 is empty. Sample attached

     

     

    0
  • Avatar
    Legacy Poster

    Ok I am able now to use suppression to change between two different sub-strings. (Very useful so far  :) Thank you)

    But how do I change the font into bold without changing it for both substrings ?

    0
  • Avatar
    Legacy Poster

    If you go into the properties of the text string and choose the Font option there is a button "Font by Data Source" which will allow you to to do this.

    0
  • Avatar
    Legacy Poster

    Thank you very much. Problem solved! :)

    0

登入寫評論。