Zum Hauptinhalt gehen

Suche

Suche

Dynamically Load Template Based On Data

Kommentare

3 Kommentare

  • Avatar
    Fernando Ramos Miracle

    Hello Dan,

     

    1. I'm not sure if I fully understand what you meat when saying "get the first field and set it as a variable", could you please explain in further detail? Not sure if it would be helpful but in BarTender v10.1 we've included Global Data Fields, you'll find more information on the below webpage:

    http://www.bartenderbarcodesoftware.com/label-software/whitepapers/WhitePaper_WhatsNewInBT101.pdf

     

    2. You could indeed use a "Search and Replace" action (or actions) to add the Commander script to the actual file going to be used as database (you first need to use Commander task to record the incoming data in a text file). This way you could add at the beginning the initial script: %BTW% /AF="\\CoputerName\Pathway\ ; then, substitute the first separator character "|" with the rest of the Commander script " /D="%Trigger File Name%" /P /R=3 /DD

    %END%

     

    *Note that you'll need to include the two carriage return characters.

     

    **Also please note that I've substituted your "DriverLetter:" reference to a mapped drive with a UNC path. Please note that Windows services (such as Commander when running as a service) are not compatible with mapped drives as they are user dependent (won't even exist on a service context).

     

    Cheers.

    0
  • Avatar
    Legacy Poster
    Hey Fernando,
     
    Thank you for the quick response! (You guys are fast around here). I don't think I was too clear about '1.' what I would have liked to do is extract the file name out of the string: 'TemplateName.btw|ImageName.jpg|PartNumber|...' and store it in a variable that I could use in another command. 
     
    Anyway, with your help on Search and Replace, I managed to resolve the problem with string manipulation. Thank you very much.
    0
  • Avatar
    Fernando Ramos Miracle

    Hello Dan,

     

    I'm glad I could be of help.

     

    Also please note that on v10.1 we added the "Print Job Field" data source type. One of the field options for this data source type would be "Document Name" that would get you exactly what you require.

     

    Cheers.

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.