How To Handle Multiple /f Parameters In A Trigger File 追蹤


I have one trigger file that contains data for two bartender designs


How can I handle this in one trigger file


I tried a set-up like this , but it does not work




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










How to handle multiple /F  or /AF parameters

Each design has its own parameters



2 意見

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:

Domingo Rodriguez
評論操作 永久連結

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


Your shared data here




%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


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.