Newbie Automation Questions
1. Is it possible to use the /pd parameter for automation - I suspect not. If not, is there a variable I can pass in [either from command line or data] for the position of the 1st label on a page.
When I print the label from BarTender I get the dialogue prompt, but not through automation. This makes sense to me [automation is supposed to be hands off] but I'd like to have some way to pass the start position of the label if possible.
2. %END% in a commander script seems to be used as data.
%BTW% /AF="C:\Commander\6x1.btw" /PRN="PrimoPDF" /P /D=%Trigger File Name%
CS-001|2|CHAIN|1250|1950|2850|1|10|6|1|10|001
This file prints correctly, but according to the documentation should be:
%BTW% /AF="C:\Commander\6x1.btw" /PRN="PrimoPDF" /P /D=%Trigger File Name%
%END%
CS-001|2|CHAIN|1250|1950|2850|1|10|6|1|10|001
When I print this, I get a single lable with the word %END% printed in the first field.
Is this a documentation error? I'm just ignoring it for now.
When I print the label from BarTender I get the dialogue prompt, but not through automation. This makes sense to me [automation is supposed to be hands off] but I'd like to have some way to pass the start position of the label if possible.
2. %END% in a commander script seems to be used as data.
%BTW% /AF="C:\Commander\6x1.btw" /PRN="PrimoPDF" /P /D=%Trigger File Name%
CS-001|2|CHAIN|1250|1950|2850|1|10|6|1|10|001
This file prints correctly, but according to the documentation should be:
%BTW% /AF="C:\Commander\6x1.btw" /PRN="PrimoPDF" /P /D=%Trigger File Name%
%END%
CS-001|2|CHAIN|1250|1950|2850|1|10|6|1|10|001
When I print this, I get a single lable with the word %END% printed in the first field.
Is this a documentation error? I'm just ignoring it for now.
0
-
[quote name='Ian M' timestamp='1345513319' post='3115']
1. Is it possible to use the /pd parameter for automation - I suspect not. If not, is there a variable I can pass in [either from command line or data] for the position of the 1st label on a page.
When I print the label from BarTender I get the dialogue prompt, but not through automation. This makes sense to me [automation is supposed to be hands off] but I'd like to have some way to pass the start position of the label if possible.
2. %END% in a commander script seems to be used as data.
%BTW% /AF="C:\Commander\6x1.btw" /PRN="PrimoPDF" /P /D=%Trigger File Name%
CS-001|2|CHAIN|1250|1950|2850|1|10|6|1|10|001
This file prints correctly, but according to the documentation should be:
%BTW% /AF="C:\Commander\6x1.btw" /PRN="PrimoPDF" /P /D=%Trigger File Name%
%END%
CS-001|2|CHAIN|1250|1950|2850|1|10|6|1|10|001
When I print this, I get a single lable with the word %END% printed in the first field.
Is this a documentation error? I'm just ignoring it for now.
[/quote]
1. If you're automating via Commander, /PD will work to pop up the print dialog windows, but only if you've got Commander running as an application. The BarTender service can't run in an interactive window.
2. The %END% line is required, that's what tells it that the command string is done. But you will need to add a /R=3 to the command string, that will tell it that the data starts on line 3 of the trigger file. Also, make sure to encapsulate the trigger file name variable in quotes, it's better practice to do that. So this is what your trigger file should look like:
%BTW% /AF="C:\Commander\6x1.btw" /PRN="PrimoPDF" /D="%Trigger File Name%" /R=3 /P
%END%
CS-001|2|CHAIN|1250|1950|2850|1|10|6|1|10|0010
請登入寫評論。
評論
1 條評論