Reputation: 75
I have a barcode printer and a sticker roll, on which the printer is going to print the barcode. The size of each sticker is 2.5" * 1.5". I have already generated the barcode using a library now when I print this barcode, the browser is printing the whole page and not just the barcode I have tried different approaches like making a div and giving it the specific width/height and only printing that specific div but the problem is still the same.
.
Upvotes: 2
Views: 2884
Reputation: 75
Here is the solution to my problem from @KIKO SOFTWARE:
In "More Settings Dropdown" the paper size must match the size of paper you're using. If your size (2.5" * 1.5) is not there, you can add it. This is usually done in the printer settings of the operating system.
Just go to Control Panel>Hardware and Sound>Devices and Printers
Right-click on your printer select "Printer Preferences" then in Page Setup click "New" and add your required size :(
And here is the result
Thanks to @KIKO SOFTWARE
Upvotes: 2