(The following steps may vary if your barcode printer software is not BarTender.)
Go to File > Print,
Click on Options,
Check the checkbox of Print to File,
Click on Print.
Click on Browse to select a folder to keep the output file (Template) and define the file name (ends with .prn)
Then click on Print. The template file is generated.