02.02.2022, 18:38
Moin,
ich habe eine Tabelle, siehe bild
Beim ausdrucken habe ich das Problem das die Hintergrundfarbe nicht mitgedruckt wird.
Drucken tu ich mit folgenden Code
[attachment=66]
LG Dirk
ich habe eine Tabelle, siehe bild
Beim ausdrucken habe ich das Problem das die Hintergrundfarbe nicht mitgedruckt wird.
Drucken tu ich mit folgenden Code
Code:
function PrintElem(elem)
{
var mywindow = window.open('', 'PRINT', 'height=400,width=600');
mywindow.document.write('<html><head><title> </title>');
mywindow.document.write('</head><body >');
mywindow.document.write('<h1>Bienenstände</h1>');
mywindow.document.write(document.getElementById(elem).outerHTML);
mywindow.document.write('</body></html>');
mywindow.document.close(); // necessary for IE >= 10
mywindow.focus(); // necessary for IE >= 10*/
mywindow.print();
//mywindow.close();
return true;
}
</script>
[attachment=66]
LG Dirk