Click to See Complete Forum and Search --> : [RESOLVED] Printing Backgrounds - HTML


mpasternak
05-08-2007, 02:25 PM
Good afternoon folks.

Here's my rather simple HTML Dilemma.

I've got a special Timesheet template. It takes it's data from the server and determines which boxes need to be filled. However, This is a paper template that needs to get printed and sent. The fields that do not need to be filled out need to be filled in Black

The array of data is a very simple table. if the data isn't dneeded, that cell is blacked out. However, Printing doesn't by default print those backgrounds if i use the <td bgcolor=black> tag.

I'm wondering, is there a way to fill those cell's in black some other way that will print by default or over ride the default printer settings to print backgrounds?

NogDog
05-08-2007, 05:47 PM
Does the same thing happen if you use a style, instead? For example:

<td style='background-color: black;'>

mpasternak
05-09-2007, 10:19 AM
Yes. It still treats it like an image / background instead of part of the printable table.

on the alternate, is there a way to put a big cross through that table cell? like either a full X or perhaps a / or \. Something that just fills the entire cell to indicate that it's not accepted input.

I guess some background if it helps:> our company has a standard timesheet for about 3000 workees. it has 3 columsn. Reg, OT and DT. some employees have contracts for no OT, or no DT, or all of one or the other. Sometimes however the mployees will fill out the wrong columns for their hours, and we pay it, even though we're not suppsoed to. I've created the template that blacks out the columns that are not applicable. However what i'm finding is that "BGCOLOR" or the stilesheet is considered a background or image and not defaultly printed.

I'd say whatever and just instruct people how to change their browsers. But i really and dealing with the common denominator here. majority of the users of my system often get confused when i say "web browser" instead of "internet".

bradgrafelman
05-09-2007, 11:22 AM
I'm wondering, is there a way to fill those cell's in black some other way that will print by defaultCan you alter the data that is outputted? Instead of outputting a blank cell, you can output an IMG tag that points to a 1x1 GIF image (black, or color of your choice) and set its height and width to 100%.

mpasternak
05-09-2007, 12:15 PM
Thank you. That worked. and gave me the opportunity to do a fill other than just black. I've created a JPG with a "X" design in big bold lines that fills the entire cell.

bradgrafelman
05-09-2007, 01:21 PM
Don't forget to mark this thread resolved.