メインコンテンツへスキップ

検索

検索

Text formatting when sending by JSON

コメント

4件のコメント

  • Avatar
    Peter Thane

    It sounds like you are trying to print EU FIC food allergen labels. 

    The simplest way to do this is use the sample label that comes with BarTender and manipulate this to match your requirements. The label can be found in the Document>BarTender>BarTender Documents>Food Production and Processing folder. 

    With that label the data is sent as a standard text string (or from a database etc) and at print time the VB script routine kicks in to pick out the Allergens and bold these as required. For your application you would need to populate the Ingredients named data source with your ingredient data. 

    For the second part of your query it sounds like you linking up to a scale and so you may want to look at the Scale Display Data Entry option and see if that meets your requirements. .  

    0
  • Avatar
    Manuel velduque

    Hello, thanks for your answer, the allergens part is ok, but the weight is a bit more complicated .. I need to send a label where all the fields are fixed except the weight, the problem is that I cannot use the scale object or any form, that is, the scale is connected to the SATO printer via serial, and the labeling is online, that is, it is continuous and very fast between package and package.

    The scale already sends the weight to the SATO but I don't know how to make it print on the label directly, maybe it's not possible.

     

     

    0
  • Avatar
    Peter Thane

    I have not linked up a Sato label to accept an external source before but I am guessing you need to configure the field on the label to be a Printer Code Template Field. 

    0
  • Avatar
    Ruben Arslanian

    Hi Manuel

    Theoretically, sending part of the data for your label to the printer from BT, and having some of it come from the scale is doable. But the help you need most likely needs to come from SATO, as you'll have to use their driver commands to manipulate the printer into doing what you want.

    Sato has both really good documentation on their drivers, and very good support in the US for this kind of thing. I don't have the name with me right now; but they have a guy based out of San Diego that can definitely help you get this done. If you call SATO US, they can put you in touch with him.

    As far as making some of the characters bold, you can easily set that through your template. JSON is just format in which you'll provide the variable data to the integration. Even deciding on the fly which characters should be bold is doable, but only through the template. It has nothing to do with the integration. If the native functionality within Bartender doesn't work, you can always use VBScript to achieve it in the template.

    Hope this helped.

    0

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