How to print 2 copy of the same invoice side2side
Posted: 2020-03-11 20:32
Hello dear family, I hope you all are doing great. Please I need you help!
this is the code I use to print invoice page
"
<body>
<a href="<?php echo PREPEND_PATH; ?>facturation_view.php?SelectedID=<?php echo urlencode($id) ?>" class="btn btn-info hidden-print btn-lg"><i class="glyphicon glyphicon-chevron-left"></i> <?php echo html_attr($Translation['Back']); ?></a>
<button class="btn btn-primary hidden-print btn-lg hspacer-lg" type="button" id="sendToPrinter" onclick="window.print();"><i class="glyphicon glyphicon-print"></i> Imprimer</button>
</body>
"
with this code, I can print normal invoice in one page, but what I want is to get the same page twice side by side in the same sheet
this is the code I use to print invoice page
"
<body>
<a href="<?php echo PREPEND_PATH; ?>facturation_view.php?SelectedID=<?php echo urlencode($id) ?>" class="btn btn-info hidden-print btn-lg"><i class="glyphicon glyphicon-chevron-left"></i> <?php echo html_attr($Translation['Back']); ?></a>
<button class="btn btn-primary hidden-print btn-lg hspacer-lg" type="button" id="sendToPrinter" onclick="window.print();"><i class="glyphicon glyphicon-print"></i> Imprimer</button>
</body>
"
with this code, I can print normal invoice in one page, but what I want is to get the same page twice side by side in the same sheet