The barcode printing from an EMDI form is based on JsBarcode.
However, since the EMDI variables usually end up with gaps that change the password, downloaded the customized file: JsBarcode.all.min.js (it trims the barcode before it produces it). This file is copied to the forms folder.
At the top of the form that will include our barcode, we put the code inside the head tag:
1 |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
Where we want to put the barcode:
1 2 3 4 5 6 7 8 9 10 11 |
<script src="file:///C:/Program Files (x86)/SBZ systems/EMDI/forms/JsBarcode.all.min.js"></script> <svg class="barcode" jsbarcode-format="CODE128" jsbarcode-value="#SXE ~" jsbarcode-textmargin="0" jsbarcode-fontoptions="bold"> </svg> <script> JsBarcode(".barcode").init(); </script> |
In this example, we use the content of the relevant document inside our document to produce the barcode.