I need help finding a code that can display and print a number without showing the Printer Preview. I have already achieved this, but when I try to print the page it shows the Printer preview, whereas I want to directly print it using a POS machine.
Can anyone provide guidance on how to solve this issue?
ts file
print(){
window.print();
}
html file
<button type="button" (click) = "createNumber();print();" class="btn btn-primary" >Create Number</button>