How do I configure to print for a thermal paper printer with react-to-print?

30
May 23, 2019, at 07:50 AM

I'm working in a React page, and I'm using react-to-print for printing. But now I need to print in a thermal paper printer. Those that prints tokens, tickets, etc.

I've already looked over this question, but I still don't know which size to set or how to create a size.

And I've already looked over the source code, to learn more about the argument pageStyle and found this as default:

"@page { size: auto;  margin: 0mm; } @media print { body { -webkit-print-color-adjust: exact; } }"

But I didn't figured out how to set this argument to print at thermal printer size.

What argument do I pass in pageStyle parameter to print in that size?
Is there a list of page styles or a way of configuring a new page style?
How do I test this without a printing?

READ ALSO
the value of the property is null or undefined, not a Function object

the value of the property is null or undefined, not a Function object

I have code which functions perfectly fine in Chrome and Firefox but IE 11 (where the code MUST function) throws the following error:

35
How to access global data in material-ui MenuItem onClick function

How to access global data in material-ui MenuItem onClick function

I have a list of items and each of them has a menu (material-ui Menu) with option (MenuItem) to edit and delete;

33
Javascript Switch-Case syntax is confusing me [duplicate]

Javascript Switch-Case syntax is confusing me [duplicate]

This question already has an answer here:

58