Setting Template Object Data |
Use BTXML script to directly set values of named data sources that are defined in a BarTender document.
The following sample code opens the document Document1.btw, sets values for the data sources named Product and Price, and prints the document.
<?xml version="1.0" encoding="utf-8"?>
<XMLScript Version="2.0">
<Command Name="Job1">
<Print>
<Format>c:\BarTender\Document1.btw</Format>
<NamedSubString Name="Product">
<Value>Chai Tea</Value>
</NamedSubString>
<NamedSubString Name="Price">
<Value>$18.00</Value>
</NamedSubString>
</Print>
</Command>
</XMLScript>
For more information about data sources, see the <SubString> tag.
Related Topics