Zum Hauptinhalt gehen

Suche

Suche

How To Handle Multiple /f Parameters In A Trigger File

Kommentare

2 Kommentare

  • Avatar
    Shotaro Ito

    As I know, Commander script cannot handle two or more %BTW% commands (which actually calls BarTender) with embedded text database, within a trigger file.

    There's some workarounds:

    0
  • Avatar
    Domingo Rodriguez
    Moderator

    Actually, you can indeed call 2 BTW commands within the same text trigger file, but if the trigger file also contains data, then both BTW calls will share the same set of data unless you set a query prompt on the database:

     

    As an example:

     

    %BTW% /AF="C:\directory\name.btw" /PRN="M4" /R=3 /P /D="%Trigger File Name%" /C=1 /S=1 /Close 

    %BTW% /AF="C:\directory\products.btw" /PRN="M5" /R=3 /P /D="%Trigger File Name%" /C=1 /S=3 /Close

    %END%

    Your shared data here

     

    Or

     

    %BTW% /AF="C:\directory\name.btw" /PRN="M4" /R=3 /?myquery="A1" /P /D="%Trigger File Name%" /C=1 /S=1 /Close 

    %BTW% /AF="C:\directory\products.btw" /PRN="M5" /R=3 /?myquery="A2" /P  /D="%Trigger File Name%" /C=1 /S=3 /Close

    %END%

    Your shared data here

     
    Where myquery is a database query prompt which you've previously created in BarTender (at design time) via the "Query" tab of BarTender's database connection setup dialog. By using a query prompt, you can make it possible for one BarTender document to print a certain set of data, and the other BT document to print a different set of data.
     
    However, if you own the Enterprise Automation Edition of BarTender, then your best solution is to make use of BarTender XML Script, as it is a more powerful solution than using Commander Script parameters.
    0

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