HTML-Tabelle lässt sich nicht farbig drucken
dasgurke
- html
Huhu liebes Forum!
Ich habe mit Javascript einen Tabellengenerator geschrieben.
Das funktioniert auch alles. Hier mal etwas minimal generiertes:
<table border="0"><tr><td width="100px" style="border-style:solid; border-bottom-color:black; border-top:0px; border-left:0px; border-right:0px"> </td><td width="400px" style="border-style:solid; border-bottom-color:black; border-top:0px; border-left:0px; border-right:0px"><b>Service</b></td><td width="150px" style="border-style:solid; border-bottom-color:black; border-top-color:black; border-left-color:black; border-right:0px; background-color:red"><font color="white"><b>Status</b></font></td><td width="200px" style="border-style:solid; border-bottom-color:black; border-top-color:black; border-left:0px; border-right-color:black; background-color:red"><font color="white"><b>Verantwortlich</b></font></td></tr><tr><td height="120px" align="center" style="writing-mode: tb-rl; filter: flipv fliph; border-bottom-color:black; "><b>erstes feld</b></td><td width="400px" height="120px"><table border="0"><tr><td height="30px" width="400px" style="border-bottom-color:black; border-style:solid; border-top:0px; border-left:0px; border-right:0px">erster service</td></tr></table></td><td width="160px" height="120px"><table border="0"><tr><td height="30px" width="170px" style="border-bottom-color:black; background-color:green; border-style:solid; border-top:0px; border-left:0px; border-right:0px"> </td></tr></table></td><td width="210px" height="120px"><table border="0"><tr><td height="30px" width="210px" style="border-bottom-color:black; border-style:solid; border-top:0px; border-left:0px; border-right:0px">ich</td></tr></table></td></tr><table><tr><td width="509px" style="background-color:gray; border-bottom-color:black; border-top-color:black; border-left-color:white; border-right-color:white; border-style:solid; border-left:1px; border-right:0px"> </td><td width="159px" style="background-color:gray; border-bottom-color:black; border-top-color:black; border-left-color:white; border-right-color:white; border-style:solid; border-left:0px; border-right:1px"> </td><td width="210px" style="background-color:gray; border-bottom-color:black; border-top-color:black; border-left-color:white; border-right-color:white; border-style:solid; border-left:0px; border-right:1px"> </td></tr></table></tr></table>
Mein Problem ist nun, dass die farbigen Felder unter "Status" weder in der Druckvorschau, noch mit freepdf angezeigt oder gedruckt werden. Wäre super wenn euch das was dazu einfällt!
danke schonmal,
MfG
Om nah hoo pez nyeetz, dasgurke!
Im Browser ist einstellbar, ob Hintergrundfarben gedruckt werden sollen.
Matthias

Vielen Dank für die schnelle Antwort!
Habe die Funktion gefunden und muss sie
nun noch vom SysAdmin freigeben lassen :)
LG und vielen Dank
Dasgurke