Commander Xml File Questions S’abonner

0
Avatar
Legacy Poster

Hi, 
    First of all, I'm real new to the Bartender world, my background had been exclusivly Loftware label software.  I'm looking to see how this is done or if it's possible.  
    
    This is what I know:
1) Our application will create a single xml file per print job request, (either a receipt, shipping, part, or Inventory label etc.)and place it into a specific directory as an *.xml.  
2) I'm hoping for bartender's commander to pick up the xml file and print it based on what we specify in each xml file.  a typical xml file will have what printer to use, what label format (document) and the number of copies, plus all of the fields we want populated on the label, and this changes each time an xml is generated. 
 
Is this possible?  if so is there any example xml files that I can look at?
 
Thank you in advance!
Brad

5 commentaires

0
Avatar
Domingo Rodriguez
Modérateur
Actions pour les commentaires Permalien

Yes, this is possible thanks to our Commander middleware application. In order to use XML Script inside a trigger file you would require to purchase an Enterprise Automation Edition of BarTender.

 

In order to have Commander understand XML Script, you would either have your ERP system:

 

1. Directly write BarTender XML Script syntax. You've a full reference on BTXML-Script in BarTender's Help (F1) by visiting the "Automating BarTender > Automation with XML Script"

2. If your ERP System uses your own implementation of XML Script, you would also need to supply Commander with an XSLT stylesheet which would basically tell Commander how to transform the particular XML Script implementation used by your ERP System into BarTender XML Script (which is the XML Script implementation we use).

 

Yes, we've a sample which explains how to integrate SAP AII with BarTender through Commander. You can find it under "C:\Users\username\Documents\BarTender\BarTender Documents\SAP AII" after installing BarTender (including BT samples).

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

Hi Domingo,

        OK, I can setup a xml script to call my document, and commander picks it up and prints just my static information.  I'm having an issue getting the data to print from my xml file to the specific fields in my document.  I know I'm doing something wrong with the design / setup.  Is there any specific examples you could provide me on a xml trigger file printing to document that has more than 3 specific fields to print to?  I have to be doing something wrong, this should not be this hard.

 

Thanks 

0
Avatar
Domingo Rodriguez
Modérateur
Actions pour les commentaires Permalien

If you've used BarTender XML Script, we've some examples under BarTender's Help (press F1 key from within BarTender). Visit now the "Automating BarTender > Automation with BarTender XML Script" topic and check the "Getting Started" for BarTender XML Script documentation.

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

Domingo,

  I don't see the label design side of things.  I see references that it calls the document.btw for the substring name of Product, but I seem to be having issues setting up the label format itself.  If I could see the example for the document.btw, i should be able to get it going. 

0
Avatar
Domingo Rodriguez
Modérateur
Actions pour les commentaires Permalien

If you e.g. take a look at the "Setting Template Object Data" XML Script example, you will see that it references two NamedSubString called "Product" and "Price". 

 

You can easily create a BarTender document named "Document1.btw" which has two text objects in it. You then open the properties for each object on the label, select the "Data Source" on the left node and now also the "Data Source" tab on the right node. Finally, you press the "Name" button and give it a shared name: "Product" and "Price".

 

At print time, you will see that the XML Script example will update the values for these shared data sources.

 

We've some document examples, but they do not directly show how to assign variable data using BTXML-Script. They show how to first convert some other XML Script type into BTXML-Script (by using our middleware software Commander), and then how to print the label.

Vous devez vous connecter pour laisser un commentaire.