The press on a thermal printer (without margins and laying)

I have a Cutter Star SP700 thermal printer. I use Internet Explorer to print shortcuts. It does what I need, but always adds TOP and BOTTOM margin / padding for each individual label. I did the page setup in IE and deleted all the fields, deleted the header and footer settings, however I still see the Space above and below my text .... this is how it prints ...

---------------------------

My Text

---------------------------

However, I want it to print like this ...

----------------------------
My Text
----------------------------

It looks fine in IE, however, when I type, it adds fields.

Here is my HTML.

<style>
html, body{
    padding:0mm;
    margin:0mm;
    font-family:Arial;

}
    #main {
        width:47mm;
        height:5mm;
        border:solid 0.1mm #000000;
    }
    </style>
<body>

    <div id="main">

    <div>Hello Friend</div>
    <div style="page-break-after:always"></div>

     </div>
    </body>

Please note: I need to print several shortcuts with a single PRINT command, so I use page breaks: always, and in my printer settings I set "CUT-TYPE" to Partial Cut.

+4

Source: https://habr.com/ru/post/1569936/


All Articles