PrintHtml icon indicating copy to clipboard operation
PrintHtml copied to clipboard

Page 2 gets cutted from Thermal POS Printer

Open YazzyTales opened this issue 3 years ago • 3 comments

Hey is there a way to stop the new pages from cutting out?

YazzyTales avatar Jan 19 '22 12:01 YazzyTales

When you say POS printer do you mean a receipt printer? Unfortunately HTML has no concept of page breaks so it likely won’t work for a label printer very well for multiple pages. But if it’s a receipt printer you may need to pick a receipt paper size that is super long. For ours we use something about 100” long and it will stop at the last printed section and cut it off.

But I have not printed on our thermal printers using this. We just use it to print packing slips to a laser printer. For our thermal labels we wrote our own printing code.

kendallb avatar Jan 19 '22 15:01 kendallb

Even when I set the size of the Receipt printer 3200mm height its getting cut. Just wanted an easy way to print. I was really happy since I could print with my own CSS code. But for some reason its getting cut even with 3200mm (Its getting cut earlier I think around at 300mm height). I have also my own code in C# but I cant design it like I could do it with CSS

YazzyTales avatar Jan 20 '22 10:01 YazzyTales

A project I have not looked at recently is to upgrade to the latest Qt libraries. They have brought back the missing bits that prevents it from working with anything past 4.8, and I think there are plenty of bugs in the code in 4.8. So that might work to fix it.

kendallb avatar Jan 20 '22 14:01 kendallb