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
How to print 2 copy of the same invoice side2side
Re: How to print 2 copy of the same invoice side2side
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.
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.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: How to print 2 copy of the same invoice side2side
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
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
- Attachments
-
- facture_invoice.zip
- (1.8 KiB) Downloaded 187 times
-
- Posts: 26
- Joined: 2015-11-02 01:22
Re: How to print 2 copy of the same invoice side2side
Wow! How do you implement the ability to print like that??
Jeff MacDougall