Xml As Data Source S’abonner

0
Avatar
Legacy Poster

Is there any way to use xml file as a data source for a label?  Or can it be used in commander to populate prompts for the label mask?  We have a request where the label file name, printer name, data for the label are all in an xml that needs to be printed when the xml is saved in a particular folder.

1 commentaires

0
Avatar
Ian Cummings
Modérateur
Actions pour les commentaires Permalien

You should use Commander for this purpose.  Upon detection of a trigger two commands should be executed, the first to perform an XSL Transform on the XML, to put the trigger data into a BarTender readable format, and the second to perform the print job with the transformed data.

 

Unfortunately there is no XML field mapper tool with BarTender/Commander, so you'll have to hand code the XSLT.  Here are some resources to help you:

 

http://www.zvon.org/comp/m/xslt.html

 

http://www.tizag.com/xmlTutorial/xslttutorial.php

 

https://msdn.microsoft.com/en-us/library/ms256058(v=vs.110).aspx

 

http://xslt.online-toolz.com/tools/xslt-transformation.php

Vous devez vous connecter pour laisser un commentaire.