React-to-print: How do I configure to print for a ticket printer?

Created on 22 May 2019  路  5Comments  路  Source: gregnb/react-to-print

I need to print in a thermal paper printer, those that prints tokens, tickets, etc.
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?

question

Most helpful comment

For people who got at this page and is looking for my question at StackOverflow, here is the link: https://stackoverflow.com/questions/56265202/how-do-i-configure-to-print-for-a-thermal-paper-printer-with-react-to-print

All 5 comments

This sounds like a question better suited for StackOverflow.

For people who got at this page and is looking for my question at StackOverflow, here is the link: https://stackoverflow.com/questions/56265202/how-do-i-configure-to-print-for-a-thermal-paper-printer-with-react-to-print

Hi @FernandoLuizNemeChibli were you ever able to figure this out? I'm going to close the issue would would love to know the solution so that if others have the same problem they can find this question

I just came up with this problem, is there a solution to this?

@luissantiagodev you'll likely have to do some type of media query or use printer specific driver settings on your computer, this library has no knowledge of what type of printer you use to print.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JoshuaKGoldberg picture JoshuaKGoldberg  路  3Comments

abdurrehman1998 picture abdurrehman1998  路  8Comments

k-jiang picture k-jiang  路  5Comments

manfye picture manfye  路  5Comments

jogoool picture jogoool  路  8Comments