User Image
print barcode in oracle apex using JAVASCRIPT

print barcode in oracle apex using JAVASCRIPT

GooAdmin Team

Creating DateMay 17, 2023

Oracle apexJavascript

print barcode in oracle apex using JAVASCRIPT

HTML CODE

1   <div>
2    <svg id="code128"></svg>
3<script src="https://cdn.jsdelivr.net/jsbarcode/3.3.16/barcodes/JsBarcode.code128.min.js"></script>
4     </div>

JS CODE

1JsBarcode("#code128", "AD243", {
2  format: "CODE128",
3  displayValue: false
4});
5window.print();

CSS CODE

1    @media print {
2  @page {
3    size: 30mm 21mm;
4    margin: 0;
5    padding: 0;
6  }
7  html, body { 
8    position: relative;
9    width: 100%;
10    height: 100%;
11    max-width: 100%;
12    max-height: 97%;
13    margin: 0;
14    padding: 0;
15  }
16  svg {
17    width: 100%;
18    height: 100%;
19    max-width: 100%;
20    max-height: 100%;
21  }
22}

May you like Heart Icon

No posts found in the category "Oracle apex"

Comments