Page 1 of 1

How to print 2 copy of the same invoice side2side

Posted: 2020-03-11 20:32
by Moh Youba
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
side2side.jpg
side2side.jpg (42.12 KiB) Viewed 4995 times

Re: How to print 2 copy of the same invoice side2side

Posted: 2020-03-11 21:20
by pbottcher
Hi,

unfortunately you do not show the html for your page that displays the invoice. (Which is created by the facturation_view.php?SelectedID=<?php echo urlencode($id).

so as a basis I can only suggest:

1, take the <div> that warps your invoice and add a class for half of the screen (e.g. col-sm-6)
2, clone that div
3, append that cloned div after the original one.

Re: How to print 2 copy of the same invoice side2side

Posted: 2020-03-11 21:31
by Moh Youba
Hello

Thank you for comment, ok I going to have a look and try your advice. attached my invoice file to let you see.

Thank you

Re: How to print 2 copy of the same invoice side2side

Posted: 2020-11-22 23:04
by jmacdougall
Wow! How do you implement the ability to print like that??