0
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';
Good the problem I have and the following. When I printed on an A4 sheet the table occupies the whole screen correctly. But I put together a receipt and I want to print it on a non-tax printer, and it uses tape that ends 80mm, and the table is cut, as if it only prints half.
Good the solution I have in mount, and make jQuery capture the width of the print sheet and change the table css.
Can anyone do it? Or have some better solution?
Have you tried measuring in millimeters? Although using "web" technology for this will always be impromptu, but perhaps using absolute measures breaks a branch. What is important to understand in the current difficulty is: whenever using hammer with screw, the result will be desired.
– Bacco
I tried to put everything inside a
div
withwidth: 350px;
but it’s coming out all tiny. There must be some way to generate a web recycle to be printed on a non tax printer– Hugo Borges
Use mm and not px. Put the fonts in mm and the width in mm (and even then, it doesn’t always work).
– Bacco