Our warehouse management system(WMS) requires a process with which to send a PDF copy of a document as an e-mail to our principal. We are using enterprise automation version of BarTender 10.1 and we are doing our printing with btxml scripts, sent from WMS to a server that is running commander.
I have managed to implement the e-mailing part using BarTender document level VBscripting but the part that's causing me trouble is the automated naming of the PDFs. The way I have currently implemented it, is that I have set the PDF printer (PDF-Xchange 2012) to always give the files a same name, and then I change the name with document level VBscripting. The problem with this solution is that we need to run multiple instances of BarTender to meet the performance level that we require from this system. If we run multiple instances of BarTender, there can be a situation that another instance of BarTender tries to print PDF to the static file name, before previous PDF is renamed with the VBscript.
Any suggestions for a solution? PDF-Xchange doesn't provide any suitable automatic filenaming conventions, because simply using timestamp can also be broken due to simultaneous printing.
summary of the environment:
Operating system: Windows server 2012
BarTender version: Enterprise automation 10.1
Method of automation: btxml scripting
Printer involved: PDF-XChange 2012