CSS Setup for Dot Matrix Printer

2

Well, my problem is this. I am developing a web system and I use ASP.NET MVC, I was able to generate a tab where the layout I present is null . However, I was unable to set up the print correctly for a dot matrix printer.

The size of the matrix sheet is 1/2 page ( Width : 21.4 / Height : 13,7). What would be the best page size, font, and font size for such an impression? Or are such settings made directly to the printer?

  

PS: I tried the code below and it did not work as expected.

     

PS²: I'm using window.print(); to call the modal print in chrome.

@media print {
    html, body {
        width: 5.5in; /* was 8.5in */
        height: 8.5in; /* was 5.5in */
        display: block;
        font-family: "Calibri";
        /*font-size: auto; NOT A VALID PROPERTY */
    }

    @page {
        size: 5.5in 8.5in /* . Random dot? */;
    }
}
    
asked by anonymous 31.10.2016 / 14:21

1 answer

3

I had a problem similar to printing thermal printers in Firefox. To solve the page layout problem I had to use the "Page Setup" menu in Firefox and leave it customized for that type of paper (margins, orientation and size).

The problem is that it is always configured with that type of print.

    
01.11.2016 / 12:24