Create a macro which starts automatically when the .docm is opened and creates a mail merge using each of the .xlsx datasources in a specified directory, and outputs individual files to another directory.
The data source would be a .xlsx file which is created by a java application I have already had constructed.
Included:
1 x template word file with barcode macro inserted (you will need to install the demo t-barcode office software to make it work [login to view URL])
1 x demo file of .xlsx files to merge with the template file