Can I Pass Data To Embedded Data Fields In Command Line?
I've added some embedded data to my label template thinking on pass specific data when printing it using commander. I haven't found any description on how to do it so the question is if it is possible to make this action.
-
I suggest you take a look at the Commander white papers:
http://www.bartenderbarcodesoftware.com/label-software/whitepapers/Commander-Examples(English).pdf
0 -
Legacy Poster
★ BarTender Hero ★
I am trying to do the same thing, pass data to an embedded data field in the template using a commander trigger file. I read both of the Commander white papers and did not find a solution for this scenario. This to me is fairly basic functionality, so I have to believe that there is a way to accomplish it.
0 -
You would need to name the embedded data source in question in the BarTender document design. Then in the trigger for Commander you'd need to make use of XML Script (Enterprise Automation edition only) and set a value via the <NamedSubString>tag.
Here is a simple example:
<?xml version="1.0" encoding="utf-8"?> <XMLScript Version="2.0" Name="09232006_103601_Job1" ID="123"> <Command Name="Job1"> <Print> <Format>Document1.btw</Format> <NamedSubString Name="SubString1"> <Value>John Doe</Value> </NamedSubString> </Print> </Command> </XMLScript>
0 -
Legacy Poster
★ BarTender Hero ★
So If I understand correctly, instead of a csv, an xml file specified as the last command of a trigger file /xmlscript = "xmlname" can send data to an embedded data fields in the template. ? Where do you write the xml file? I assume it would look in the same folder as the .dd trigger folder?
If so do you have to timestamp the xml file to avoid conflicts with multiple print requests?
I just read that it is possible to pass the name of a csv file or actual csv data in an xml file. In that case do you keep the name of the data source the same and create a csv datasource that point to all the fields in the template ?
Can you automatically delete the csv, xml after the .dd file triggers the command.
Gracias !
Thomas
0 -
If you're using Commander then just have the XML be the content of the trigger. Remember though, XML Script is supported by the Enterprise Automation edition only.
0 -
Legacy Poster
★ BarTender Hero ★
I am using the Non Enterprise Automation Edition. Is there a way to dynamically set a template data source in a trigger file so that a csv file does not get overwritten when it is sent by a second user.
0
Please sign in to leave a comment.
Comments
6 comments