Zum Hauptinhalt gehen

Suche

Suche

Format Text Box Data

Kommentare

4 Kommentare

  • Avatar
    Legacy Poster

    I take it from the lack of replies this will not be possible within BarTender. Would that be correct?

    0
  • Avatar
    Michael Toupin (mtoupin
    If the data doesn't have some sort of delimiter to tell it where the different lines would start than there's really not any way for BarTender to know that. Now if you do get the delimitation in there, you will still need to be able to parse that data into separate strings to be able to achieve the formatting that you're looking for. Probably the easiest way to do that would be VB scripting. Now the 9.01 version doesn't support different font information in a single text object, so your options are get to version 10.1 which does support that or put them as separate text objects on the label and populate them via scripting.
    0
  • Avatar
    Legacy Poster

    I've got some way towards sorting this as I can break the field up and add carriage returns where I want, denoted by a character sequence which for illustation is %# so that whereever that string is seen it replaces it with a control sequence to force a carriage return:

     

    Value = Replace(Value, "%#", Chr(13))

     

    However as you say you can't do formatting of text in this version of BarTender however I have seen that in later versions HTML tags can be parsed therefore <b>text to be bolded</b> so it looks I should be able to achieve what I need in later versions so long as the HTML and vbScript don't clash. 

     

    Am I correct in this?

    0
  • Avatar
    Legacy Poster

    OK I've downloaded a later version to demo and I am now able to everything that I require using html tags alone, namely <b> </b> bolding, <u> </u> underlining, <i> </i> italics and <br/> for new lines. Fairly simple when you have the right version. Should be easy enough to output the data with the required tags or at least script into the right format if it won't play ball.

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.