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

検索

検索

Selecting Print Doc Based Off Variable?

コメント

1件のコメント

  • Avatar
    Ian Einman

    BarTender 10.0 and later support multiple templates within a single document.  It is possible to set a print condition on a template, that evaluates when a given data source is "True".

     

    You could do the following:

    • Create two templates on the Templates tab of Page Setup.
    • Create a text object, placed outside of the label bounds.  Set the data to a VB Script data source, and check the weight against the condition "Weight >= 19" or whatever the condition is.  Give this data source a name, like "LessThan19".
    • Create a text object, placed outside of the label bounds.  Set the data to a VB Script data source, and check the weight against the condition "Weight < 19" or whatever the condition is.  Give this data source a name, like "GreaterThan19".
    • Set the condition for one template to print when "LessThan19" is true, and the other template to print when "GreaterThan19" is true.

    If you're using 9.4 or earlier, it gets more complicated.  You may be able to do it inside of Commander using XSLT, generating a different BTXML file when the weight is under 19 vs. over 19.  XSLT transforms do support conditional statements, but setting this up borders on rocket science.  Please let us know if 10.0 is a viable option first.

    0

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