I have the following code:
HTML
<table style="width: 100%">
<tr>
<th>
teste
</th>
</tr>
</table>
JQUERY
// Imprime a página
window.print();
// Redireciona página
window.location = 'link';
Well the problem I have and the following. When printing on an A4 sheet the table occupies the entire screen correctly. But I put up a receipt and I want to print it on a non-fiscal printer, and it uses tape ends at 80mm, and the table is cut, as if it printed only half.
Well the solution I have in bundle, and have jQuery capture the width of the print sheet and change the css of the table.
Does anyone know how to do this? Or is there a better solution?