I have the following box
I want to print:
Print function:
//Imprimir
$(document).on('click', '.imprimirDocumento', function() {
var divToPrint = document.getElementById('impresion');
var newWin = window.open('', 'Print-Window');
newWin.document.open();
newWin.document.write('<html><body onload="window.print()">' + divToPrint.innerHTML + '</body></html>');
newWin.document.close();
setTimeout(function() { newWin.close(); }, 10);
});
But the output is like this:
What can I do so that at the time of printing the document, even if it respects the order of the header (col-md-3) that was done with bootstrap and does not print everything down?
Thank you very much for the help.
EDITED
If I use only window.print()
it looks like this: